-
获取历史对话的时候,如果对话的内容有中文就会乱码。 |
Beta Was this translation helpful? Give feedback.
Answered by
ojdev
Feb 21, 2023
Replies: 3 comments
-
很明显这个是编码问题导致的,常规来想默认应该就是utf8的编码,但是看起来并不是,所以添加了传递编码参数的方法。
|
Beta Was this translation helpful? Give feedback.
0 replies
-
发现还有一个自动猜测的方式,但是保守起见,还是让它优先自动猜测,如果依然无解就使用传入编码的方式。
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ojdev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
已经合并到https://github.com/acheong08/ChatGPT