~alcinnz/hurl

ref: d2f173e2498b50a1bd526d3c696468846f63bb0a hurl/ISSUES/charset-sniffing.md -rw-r--r-- 298 bytes
d2f173e2 — Adrian Cochrane Merge branch 'main' of git.argonaut-constellation.org:~alcinnz/hurl into main 1 year, 2 months 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.