Postgresql 写特殊符号时出现postgres sql错误

Postgresql 写特殊符号时出现postgres sql错误,postgresql,Postgresql,我在尝试将这两个单词写入postgresql时出错 地铁 逻辑的 ERROR: invalid byte sequence for encoding "UTF8": 0xa0 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". ERROR: inv

我在尝试将这两个单词写入postgresql时出错

地铁
逻辑的

ERROR: invalid byte sequence for encoding "UTF8": 0xa0 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". ERROR: invalid byte sequence for encoding "UTF8": 0x92 HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". 错误:编码“UTF8”的字节序列无效:0xa0 提示:如果字节序列与服务器期望的编码不匹配(由“client_encoding”控制),也可能发生此错误。 错误:编码“UTF8”的字节序列无效:0x92 提示:如果字节序列与服务器期望的编码不匹配(由“client_encoding”控制),也可能发生此错误。
输入的编码不是UTF-8。例如,如果我使用psql在linux中插入一个ISO-8859-1文件,我就可以重现这种行为。
您应该更改输入编码。

相应的插入/复制命令是什么?您的客户机编码是什么?您试图插入的特殊(非ASCII)字母来自哪个字符集?一般来说,将客户端编码设置为该字符集就足够了
SELECT current_setting('client_encoding')
并显示感兴趣数据库的psql
\l+
输出