首页 > 解决方案 > utf8 编码中字节序列为 0xe2 0x80 0xa6 的字符在 latin1 编码中没有等价物

问题描述

我正在通过 PostgreSQL 导入功能将 CSV 文件导入 PostgreSQL 表,但出现此错误:

character with byte sequence 0xe2 0x80 0xa6 in encoding utf8 has no equivalent in encoding latin1

这个你能帮我吗...

标签: postgresqlcharacter-encoding

解决方案


您正在尝试导入包含字符(“水平省略号”,Unicode 代码点 2026)的 UTF-8 文件。

这个字符不能用 LATIN1 编码,所以你不能这样做。

使用编码为 UTF8 的数据库或编辑导入文件以删除字符。


推荐阅读