PostgreSQL使用\copy命令时报character with byte sequence 0xc3 0xa5 in encoding "UTF8" has no equivalent in encoding "GBK"
PostgreSQL 大约 314 字错误信息
ERROR: character with byte sequence 0xc3 0xa5 in encoding "UTF8" has no equivalent in encoding "GBK"
解决方法
导出时指定encoding
为utf8
\copy (select * from test_table) to 'C:/data.csv' (FORMAT 'csv', DELIMITER ',', HEADER true, NULL 'UNKOWN', ENCODING 'UTF8')
参考
阅读 3496 · 发布于 2019-08-07
————        END        ————
扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
Linux -bash: locate: command not found阅读 62
-
OpenResty中模板渲染引擎lua-resty-template阅读 2023
-
PostgreSQL 错误: 编码"UTF8"的字符0x0xc9 0x99在编码"GBK"没有相对应值阅读 492
-
MongoDB清理历史数据释放磁盘空间阅读 818
-
软考-系统架构设计师:数据库安全阅读 385
-
Linux jobs fg bg disown阅读 399
-
Golang命令之go build阅读 562
-
Git命令之代码合并rebase阅读 570
-
软考-系统架构设计师:需求分类-需求获取阅读 521
-
软考-系统架构设计师:CISC与RISC阅读 1173