Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GB18030 without BOM #4

Open
jayvdb opened this issue Jul 31, 2019 · 0 comments
Open

GB18030 without BOM #4

jayvdb opened this issue Jul 31, 2019 · 0 comments

Comments

@jayvdb
Copy link

jayvdb commented Jul 31, 2019

This library correctly handles GB18030 when a BOM is present, however it doesnt detect correctly when the BOM is missing.

chardet and most chardet-like libraries have similar problems. c.f. chardet/chardet#178 , thombashi/mbstrdecoder#3, and PyYoshi/cChardet#45

b'\xc4\xe3\xba\xc3' is detected as {'encoding': 'iso-8859-7', 'confidence': 0.34396228194236755} which decodes as ΔγΊΓ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant