Skip to content

Encoding messes up between platforms #8

@Timicasto

Description

@Timicasto

In CSG 1.2.0.9, the config will be saved as default encoding of current platform, as if we create a config with non-ASCII characters on Windows, it will be saved as GBK, and messes up on Linux when it got read with UTF-8.

This problem still present in the newest code in this repository.

The only thing we need do is passing an OutputStreamWriter/Reader constructed by ourselves with UTF-8 encoding to the JsonWriter/Reader , to normalize the encoding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions