Nov 14 2014

PostgreSQL Error : invalid byte sequence for encoding utf8

Category: Errors and SolutionsFatih Acar @ 11:52

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.

5,798 total views, 5 views today

facebook comments:

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.