chardet2
chardet2 copied to clipboard
Fix ISO-2022-JP encoding detection.
The EscCharSetProber
class was quite buggy, and I got errors when testing for files with ISO-2022-JP encoding. This have fixed it at least for the files I tested here.