PostgreSQL: character with byte sequence 0xc2 0x81 in encoding “UTF8” has no equivalent in encoding “WIN1252”
问题 Getting the below exception while executing SELECT query for a particular row on that table ERROR: character with byte sequence 0xc2 0x81 in encoding "UTF8" has no equivalent in encoding "WIN1252" One of the column in that row contains Japanese character which has been encoded with UTF-8 and inserted into it. Is there any fix for this issue? 回答1: You should know what encoding is used in your database. SHOW server_encoding; When you connect to your database you can specify what encoding should