I am running a open-terminal server on my windows computer. After connecting to a Open WebUI, I can use model native calling ability to list, write file on my windows computer. But when I am calling the model to write a file in Chinese, the encoding problem come out.
Here is my prompt, tool calling process, everything seems fine.
But when I open the txt file on my desktop, I find it in unexpected encoding like GB2312.
This is what I've open with utf-8:
And this is what I've got with GB2312
The content is fine and in accordance with the model output. If it is just writing articles, I can save it with another encoding, no big deal. But if when the model is running a tool call chaining, every time it writes with Chinese, the script run failed due to encoding issues. So, can you fix the encoding problem with Windows computer?
I am running a open-terminal server on my windows computer. After connecting to a Open WebUI, I can use model native calling ability to list, write file on my windows computer. But when I am calling the model to write a file in Chinese, the encoding problem come out.
Here is my prompt, tool calling process, everything seems fine.
But when I open the txt file on my desktop, I find it in unexpected encoding like GB2312.
This is what I've open with utf-8:
And this is what I've got with GB2312
The content is fine and in accordance with the model output. If it is just writing articles, I can save it with another encoding, no big deal. But if when the model is running a tool call chaining, every time it writes with Chinese, the script run failed due to encoding issues. So, can you fix the encoding problem with Windows computer?