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

前端之家收集整理的这篇文章主要介绍了postgresql – 写特殊符号时postgres sql错误前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我尝试将这两个单词写入 postgresql时,我收到了错误

MetroÂ
Logic的

@H_404_14@ 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文件,我可以重现这种行为. 您应该更改输入编码.

猜你在找的Postgre SQL相关文章