Langchain-Chatchat icon indicating copy to clipboard operation
Langchain-Chatchat copied to clipboard

我想把文件字符的编码格式改为encoding='utf-8'在哪修改呢,因为会有ascii codec can't decode byte报错

Open Mr-IT007 opened this issue 1 year ago • 3 comments

上传中文的txt文件时报错,编码格式为utf-8

报错信息:ascii codec can't decode byte ......

可以自己修改编码格式吗

Mr-IT007 avatar May 14 '23 13:05 Mr-IT007

同样遇到,必须重启后才能解决

cutelitchi avatar May 16 '23 05:05 cutelitchi

目前的处理方式应该需要重写个chinese_text_loader或者在langchain代码里改

xiaoshan @.***>于2023年5月16日 周二13:55写道:

同样遇到,必须重启后才能解决

— Reply to this email directly, view it on GitHub https://github.com/imClumsyPanda/langchain-ChatGLM/issues/360#issuecomment-1549033763, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLH5EWFYMBU656DMZLLTPDXGMJE5ANCNFSM6AAAAAAYBFKRQU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

imClumsyPanda avatar May 16 '23 06:05 imClumsyPanda

改好这个bug了吗?

wjlszhang avatar May 16 '23 09:05 wjlszhang

已修复

imClumsyPanda avatar May 21 '23 16:05 imClumsyPanda

上传中文的csv文件时报错,编码格式为utf-8,请问如何修改编码格式?

RainAutumnZero avatar Aug 15 '23 07:08 RainAutumnZero