【发布时间】:2015-11-24 22:45:55
【问题描述】:
我在尝试打印文本块时收到 Python 无法解码字符 \u2002 的错误:
UnicodeEncodeError: 'charmap' codec can't encode character '\u2002' in position 355: character maps to <undefined>
我不明白的是,据我所知,这是一个 unicode 字符(即EN SPACE 字符),所以不知道为什么不打印。
供参考,内容使用file_content = open (file_name, encoding="utf8")读入
【问题讨论】:
标签: python python-3.x unicode python-unicode