Skip to content
Tcl Source Code Artifact [3aadbf11f8]
Login

Artifact [3aadbf11f8]

Artifact 3aadbf11f805a4d4fdffaf7e4cd0a17dc27698c7:

Ticket change [3aadbf11f8] - Ticket [839289ffffffffff|839289ffff] <i>http ignores charset in meta tags</i> status still Open with 4 other changes by dkf on 2003-11-12 01:30:45.
D 2003-11-12T01:30:45
J icomment Logged\sIn:\sYES\s\nuser_id=79902\n\nISO8859-1\sis\sa\ssingle\sbyte\sencoding\sthat\sgives\sa\smeaning\sto\nevery\sbyte,\sso\syou've\snot\slost\sany\sinformation\s*provided*\nyou\scan\sfigure\sout\show\sto\sun-mess-up\sthe\sencodings\s(there\sis\na\sbijective\s-\sand\shence\sinvertible\s-\smapping\sbetween\nincoming\sbytes\sand\scharacters\sin\sthe\sstring\syou\sget\sout\sof\nthe\s[http::data].)\s\sThe\sfirst\sthing\sto\sdo\sis\sto\sgo\sfrom\sthe\nUTF-8\srep\sof\sthe\s8859-1-encoded\sdata\sso\syou\send\sup\swith\sa\nbyte-sequence\sagain.\s\sOnce\syou've\sdone\sthat,\syou\scan\sthen\nconvert\sfrom\sthe\sbyte\ssequence\sto\sthe\sreal\sencoding.\s\sThis\nshould\swork\sfine\sfor\smost\sencodings\swhich\smap\sthe\sprintable\nASCII\ssubset\sin\ssimilar\sways\sto\s8859-1\s(i.e.\sso\sthat\syou\scan\nwork\sout\swhat\sthe\s<META>\stag\ssays!)\sbut\sthere\sare\soutliers\n(EBCDIC),\sbut\sin\sthat\scase\syou've\sgot\san\sintractable\sproblem\nthat\sshould\sprobably\sbe\sreported\sto\sthe\smaintainer\sof\sthe\nwebsite...\n\nIMHO,\sputting\sencoding\sinfo\sinside\sa\s<META>\stag\sis\sbroken\sby\ndesign\sanyway\ssince\sthere's\sno\sway\sto\sbound\sthe\samount\sof\narbitrarily-encoded\sinformation\sread\sfrom\sthe\sHTTP\nconnection\sbefore\sthe\sencoding\sswitch\shappens.\s\sXML\sdoes\sa\nmore\ssensible\sjob\sof\sthis\sbit\sat\sleast.\n\n(Understanding\s<META>\sis\sa\sjob\sfor\san\sHTML\sparser,\swhich\sthe\nHTTP\spackage\sisn't.\s\sYou\smight\swant\sto\scheck\swhether\sthe\nHTML\sparser\sin\stcllib\sdoes\sthe\sright\sthing\sthough...)\n
J login dkf
J mimetype text/plain
J username dkf
K 839289ffffffffffffffffffffffffffffffffff
U dkf
Z 454133c490e3f1fccdc66b78342dd403