Iuri,
As Jim says, this is an error with postgres OR with that Database.
Mostly, this encoding problem doesn't seem to occur me now but, when it occurred to me I solved it manually (with initdb). So you have to check:
- psql -l (to see DB and encoding data)
- If SQL_ASCII , use initdb (re-install or do it manually via console)
But, it doesn't to occur via those install-**.sh scripts . Perhaps there are another postgres instances or old setup