【发布时间】:2018-12-05 23:30:14
【问题描述】:
我正在使用 PostgreSQL 并在从批处理脚本(命令行)执行插入语句期间遇到错误。
错误:编码“UTF8”的字节序列无效:0xeb 0x6e 0x74
我通过show client_encoding 命令检查了client_encoding,它显示的是UTF-8。
还使用命令检查数据库属性
select * from pg_database where datname='<mydbName>'
在输出中:
datcollate = English_United States.1252
datctype = English_United States.1252
如何解决这个问题?
【问题讨论】:
标签: postgresql encoding character-encoding pgadmin-4