Skip to content

Encoding issue on windows #21

@ppoak

Description

@ppoak

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.

Image

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:

Image

And this is what I've got with GB2312

Image

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions