aadsm / jschardet

Character encoding auto-detection in JavaScript (port of python's chardet)
GNU Lesser General Public License v2.1
710 stars 97 forks source link

Specific string causes detection failure #88

Open petewest-vocovo opened 1 year ago

petewest-vocovo commented 1 year ago

The string ~{ in a UTF8/ASCII document causes detection to fail with { encoding: null, confidence: 0 }.