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

Charade==1.0.3 incorrectly identifies UTF-8 buffer as ISO-8859-2 #25

Closed
martinblech opened this issue Nov 25, 2013 · 0 comments
Closed

Comments

@martinblech
Copy link

The German word "gebührenfrei" is incorrectly detected as ISO-8859-2, even though the correct encoding appears to be UTF-8.

>>> buf = b'geb\xc3\xbchrenfrei'
>>> charade.detect(buf)
{'confidence': 0.6946821700961592, 'encoding': 'ISO-8859-2'}
>>> print buf.decode('ISO-8859-2')
gebĂźhrenfrei
>>> print buf.decode('utf8')
gebührenfrei
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

2 participants