Skip to content

建议转换成UTF-8编码 #1

@librehat

Description

@librehat

目前的编码是GBK,在Linux下默认字符集是UTF-8,输出的中文都是乱码(我就试了一下联赛引擎)。用iconv转换成UTF-8之后重新编译即可正常输出中文。

建议通过类似的脚本批量转换成UTF-8字符集,以处理多平台的中文乱码问题

for file in *.cpp
do
    iconv -f GBK -t UTF-8 -o "${file}.new" "${file}" && mv -f "${file}.new" "${file}"
done

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