PostgreSQL: character with byte sequence 0xc2 0x81 in encoding “UTF8” has no equivalent in encoding “WIN1252”

前端 未结 4 1734
夕颜
夕颜 2020-12-31 07:33

Getting the below exception while executing SELECT query for a particular row on that table

ERROR:  character with byte sequence 0xc2 0x81 in en         


        
4条回答
  •  心在旅途
    2020-12-31 08:01

    It happened with me in crystal reports...

    I changed the content of the column of my view that was generating error...

    I discovered that character "0xc2 0x81" is equal "chr(128)" - http://lwp.interglacial.com/appf_01.htm - so i've replaced this character, like this: (replace((mi.complemento)::text, chr(128), 'C'::text))::character varying(400) AS complemento

    cheers!

提交回复
热议问题