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

ASCII escape control character prevents detection of encoding #63

Closed
DRMacIver opened this issue Aug 17, 2015 · 1 comment
Closed

ASCII escape control character prevents detection of encoding #63

DRMacIver opened this issue Aug 17, 2015 · 1 comment
Labels

Comments

@DRMacIver
Copy link
Contributor

It appears to be the case that the presence of '\x1b' character (the escape key) in an ascii string prevents it from being recognised as ascii. e.g. for any n the following returns an encoding of None:

b'0' * n + b'\x1b'

This behaviour is present in master at ff1d917

@dan-blanchard
Copy link
Member

Great find. That one probably has been around for a while!

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

No branches or pull requests

2 participants