Skip to content

ASCII escape control character prevents detection of encoding #63

@DRMacIver

Description

@DRMacIver

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions