Open dajieli opened 1 year ago
这样的报错是编码那块不对么?
我也遇到了相似的报错:
Traceback (most recent call last): File "text_translation.py", line 451, in print(return_text(short_text)) UnicodeEncodeError: 'latin-1' codec can't encode character '\u201a' in position 379: ordinal not in range(256)
pip install chardet 应可解决
同样的问题 换了一个英文的文本,换了一个编码还是报错 en.pdf
这样的报错是编码那块不对么?