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

Incorrect detection of utf-8-sig encoding #28

Closed
livercat opened this issue Apr 13, 2017 · 0 comments
Closed

Incorrect detection of utf-8-sig encoding #28

livercat opened this issue Apr 13, 2017 · 0 comments

Comments

@livercat
Copy link

Test data:
data = "some text".encode('utf-8-sig')

Detection result:
cchardet 1.1.3: {'encoding': 'UTF-8', 'confidence': 0.9900000095367432}
cchardet 2.0.0: {'encoding': 'UTF-8', 'confidence': 0.9900000095367432}
chardet 3.0.2: {'encoding': 'UTF-8-SIG', 'confidence': 1.0, 'language': ''}

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