~alcinnz/hurl

ref: aedc142444374dae35cb4a1e568ca3462470e5c0 hurl/ISSUES/charset-sniffing.md -rw-r--r-- 298 bytes
aedc1424 — Adrian Cochrane Release HURL 0.2 exposing tables & parameterizing initial CSS. 2 years ago

#Optimize Charset Sniffing

Almost all charsets are supersets of ASCII, so when sniffing the charset for files which don't specify the encoding in their MIMEtype I can treat all the preceding text as ASCII. Though I suppose for this trick to work on UTF16 or UTF32 I'd need to remove any 0 bytes.