postgresql - utf8 编码中字节序列为 0xe2 0x80 0xa6 的字符在 latin1 编码中没有等价物
问题描述
我正在通过 PostgreSQL 导入功能将 CSV 文件导入 PostgreSQL 表,但出现此错误:
character with byte sequence 0xe2 0x80 0xa6 in encoding utf8 has no equivalent in encoding latin1
这个你能帮我吗...
解决方案
您正在尝试导入包含字符…
(“水平省略号”,Unicode 代码点 2026)的 UTF-8 文件。
这个字符不能用 LATIN1 编码,所以你不能这样做。
使用编码为 UTF8 的数据库或编辑导入文件以删除字符。
推荐阅读
- python - 点击后如何删除tkinter中的消息
- android - ViewGroup中绘制背景drawable的方式
- swift - 无法使用 SCNLight 出现阴影
- javascript - 如何使用 jsRender 测试对象列表中的值
- java - 模块从 java.xml 和 stax.api 读取包
- django - Django分页返回
而不是列表 - javascript - 需要删除对象数组中的重复项 - 获取键的更高值
- reactjs - React Bootstrap 在Formik中选择多个显示错误,因为它需要一个字符串但返回数组
- python - 如何在 .yaml 文件环境变量中声明值并在 Jenkins 中调用它
- spring-data - 在 AbstractMongoEventListener 中获取已删除的对象