{"id":2021,"date":"2014-11-14T11:52:14","date_gmt":"2014-11-14T08:52:14","guid":{"rendered":"http:\/\/www.fatihacar.com\/blog\/?p=2021"},"modified":"2016-11-14T12:00:31","modified_gmt":"2016-11-14T09:00:31","slug":"postgresql-error-invalid-byte-sequence-for-encoding-utf8","status":"publish","type":"post","link":"http:\/\/www.fatihacar.com\/blog\/postgresql-error-invalid-byte-sequence-for-encoding-utf8\/","title":{"rendered":"PostgreSQL Error : invalid byte sequence for encoding utf8"},"content":{"rendered":"<p><strong>Error<\/strong><\/p>\n<blockquote><p>PostgreSQL Error : invalid byte sequence for encoding UTF8<\/p>\n<p>When I try insert a row with Turkish character, I get an error like above.\n<\/p><\/blockquote>\n<p><strong>Solution<\/strong><br \/>\n<!--more--><\/p>\n<blockquote><p>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.<\/p>\n<p>-bash-4.2$ echo $LANG<br \/>\nen_US.UTF-8<\/p>\n<p>-bash-4.2$ export LANG=tr_TR.ISO88599<\/p>\n<p>You can add this parameter to .bash_profile. This provide changed environment make permanent.\n<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>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<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[113],"tags":[],"class_list":["post-2021","post","type-post","status-publish","format-standard","hentry","category-errors-and-solutions-postgresql"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-wB","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2021","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=2021"}],"version-history":[{"count":1,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2021\/revisions"}],"predecessor-version":[{"id":2022,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/2021\/revisions\/2022"}],"wp:attachment":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=2021"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=2021"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=2021"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}