Skip to content

Wrong encoding detected with simply 2-char of Chinese #294

@mxterry

Description

@mxterry

Hello, recently I have a problem with detecting encoding of a text file.

The raw data is:
b"*file_import {D:/\xc9\xe8\xbc\xc6-1.step} {Step Files}"
where the \xc9\xe8\xbc\xc6 should be “设计” in Chinese.

The encoding detected is
0.72 MacRoman
0.71 Windows-1252
0.61 Windows-1254

This string is the second line in a text file, which is the only two Chinese character in this file.

I'm not sure about the correct encoding of this text, which could be GB2312 or other GB series.
However, this file is generated by a software in windows, with system language in Chinese.

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