Error
PostgreSQL Error : invalid byte sequence for encoding UTF8
When I try insert a row with Turkish character, I get an error like above.
Solution
This error about of your local LANG parameter. If It is not support Turkish characters, you can get this error. I resolve this error with change LANG environment.
-bash-4.2$ echo $LANG
en_US.UTF-8-bash-4.2$ export LANG=tr_TR.ISO88599
You can add this parameter to .bash_profile. This provide changed environment make permanent.