微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

postgresql – 写特殊符号时postgres sql错误

当我尝试将这两个单词写入 postgresql时,我收到了错误

MetroÂ
Logic的

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".

解决方法

您对输入的编码不是UTF-8.如果我用例如在psql中插入ISO-8859-1文件,我可以重现这种行为. 您应该更改输入编码.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐