Skip to content
Tcl Source Code Artifact [d83e73431e]
Login

Artifact [d83e73431e]

Artifact d83e73431ee3b2f3a8fb44f7c81e8737558e12f8:

Ticket change [d83e73431e] - Ticket [3466099fffffffff|3466099fff] <i>BOM in Unicode</i> status still Open with 4 other changes by sebres on 2012-03-02 17:05:15.
D 2012-03-02T17:05:15
J icomment The\ssolution\swith\scpBomTable\sis\salthough\sgood,\sbut\stheoretically\sthe\sparameter\s'encodingName'\scould\sbe\sanother\ssingle\sbyte\sencoding\ssuch\siso8859-X,\setc.\nSo\sthe\sprepared\sarray\s'cpBomTable'\sshould\sbe\sgreater\sand\sit\swill\sbe\sno\smore\spractical.\nI\ssee\s2\ssolution\shere:\n\s\s1)\sread\s4\sfirst\scharacters\sbinary,\sif\snot\sBOM\sconvert\sits\sto\sgiven\s'encodingName',\sset\schannel\sencoding\sto\s'encodingName',\sread\sfurther.\n\s\s2)\sread\s1\sfirst\scharacters\sin\sutf-8,\sif\snot\sBOM\sseek\sto\sstart,\sset\schannel\sencoding\sto\s'encodingName',\sread\sfurther.\n\nI'm\strying\snow\sthe\ssolution\snumber\s1.\n
J login sebres
J mimetype text/plain
J username sebres
K 3466099fffffffffffffffffffffffffffffffff
U sebres
Z e7a865d1cc9563f41518861d57177a24