I'm trying to run the rails test suite but I keep getting this error:
$ bundle exec rake postgresql:build_databases
createdb: database creation failed: ERROR: encoding UTF8 does not match locale en_US
DETAIL: The chosen LC_CTYPE setting requires encoding LATIN1.
createdb: database creation failed: ERROR: encoding UTF8 does not match locale en_US
DETAIL: The chosen LC_CTYPE setting requires encoding LATIN1.
Hi Guys, I ran into this problem now based on the way the vagrant precise64 box is setup.
If you run this command:
You will see a table showing what encodings exist, in my case LATIN had been installed. To clear the DBs, run the following command:
I figured this out from the following link: http://stackoverflow.com/questions/15949783/postgresql-is-being-installed-with-sql-ascii-using-puppet (see the puppet exec at the bottom)