Markus Maschke said:Many people seem to have gotten this error at some point in the proceedings:
Unfortunately your postgresql database has not been created using a UTF-8 encoding.
I can say for sure that if you just install a brand-new, clean, release version postgresql with default settings and turn it on, you will get this error, and none of the fixes I've seen on the net work.
Go to a command line and enter the command pg_lsclusters.
You will see output like the following:
Version Cluster Port Status Owner Data directory Log file
9.1 main 5432 online postgres /var/lib/postgresql/9.1/main /var/log/postgresql/postgresql-9.1-main.log
Now enter the following commands, using your version number instead of 9.1:
pg_dropcluster --stop 9.1 main
pg_createcluster --start -e UTF-8 9.1 main
(Note that most commands I'm giving here need to be execcuted as root, or using sudo.)
This variant works for a clean installation. Guarantee I give here but not for me it worked.
It looks like you're new here. If you want to get involved, click one of these buttons!