Postgres issue encoding “UTF8” has no equivalent in encoding “LATIN1”

As guessed, the problem was with the client_encoding on the database. crd_production=# show client_encoding; client_encoding —————– LATIN1 (1 row) To change the client encoding to UTF-8, you need to do this crd_production=# SET client_encoding = ‘UTF8’; SET Check again crd_production=# show client_encoding; client_encoding —————– UTF8 (1 row) Things work fine now.

Differences between utf8 and latin1

UTF-8 is prepared for world domination, Latin1 isn’t. If you’re trying to store non-Latin characters like Chinese, Japanese, Hebrew, Russian, etc using Latin1 encoding, then they will end up as mojibake. You may find the introductory text of this article useful (and even more if you know a bit Java). Note that full 4-byte UTF-8 … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)