albfernandez / juniversalchardet

Originally exported from code.google.com/p/juniversalchardet
Other
339 stars 60 forks source link

getDetectedCharset() returns null for ASCII-only text #23

Closed maartenc closed 4 years ago

maartenc commented 6 years ago

Hi,

when you give an ASCII-only text to the UniversalDetector, the getDetectedCharset() will return null instead of 'US-ASCII'. Can you modify this method to return 'US-ASCII' when the inputState is 'PURE_ASCII' ?

kind regards, Maarten Coene