Skip to content

Failed to detect CP932 encoded file #280

@junfujisawa

Description

@junfujisawa

I have a CP932 encoded file which contains CP932 specific Kanji character (such as U+9AD9). When I try to detect the encoding by using chardet.detect() function, I get the following result:
{'encoding': None, 'confidence': 0.0, 'language': None}

If I use chardet.detect_all() function, I get different result.
[{'encoding': 'SHIFT_JIS', 'confidence': 0.9472926785393057, 'language': 'Japanese'}]

Both are different from the expected result, 'CP932'.

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