Closed AnitaSherry closed 1 year ago
Traceback (most recent call last):
File "/home/heyiheng/work/Chinese-LangChain/main.py", line 27, in <module>
application.source_service.init_source_vector()
File "/home/heyiheng/work/Chinese-LangChain/clc/source_service.py", line 37, in init_source_vector
print(doc.encode('utf-8'))
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 1-2: surrogates not allowed
print(doc)改为print(doc.encode('utf-8'))依然无效
删掉就好了
一个我无法解决的报错,有空的话请帮忙看一下