.
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