<i>Tcl interface to stop on encoding errors</i> status still Open with 4 other changes
by
.
D 2021-05-06T15:11:22.581
J icomment Jan,\r\nthank\syou\sfor\sthe\sedits\sin\sthe\sTIP.\sI\smerged\sthem\sin\sthe\sTIP\shappily.\r\n\r\nMay\sI\sraise\sone\sminor\spoint?\r\n\r\nI\sam\snot\sin\sfavor\sto\sinclude\sthe\sbyte\svalue\sin\shex\sof\sthe\sinput\sbyte\scausing\sthe\sconversion\serror.\r\nThe\sreasons\sare:\r\n\r\n\s\s\s*\s\s\sIn\sa\smulti-byte\ssequence\slike\san\sinvalid\sutf-8\ssequence,\sthe\serror\sis\snot\sjust\sone\sbyte,\sbut\sa\sseries\sof\sbytes.\sUnfortunately,\sonly\sthe\sfirst\sbyte\sis\sshown.\r\n\s\s\s*\s\s\sWhen\sconverting\sto\sa\ssingle\sbyte\sencoding\s(example\sISO-8859-1),\sthe\serror\sbyte\svalue\swill\sbe\sthe\sfirst\sbyte\sof\san\sutf-8\ssequence.\sIMHO\sthis\scauses\smore\sissues\sthan\sit\shelps.\r\n\s\s\s*\s\s\sThe\serror\swill\snot\shappen\son\sASCII\scharacters\s(they\salways\sconvert\sto\severything).\sThe\serror\swill\shappen\son\sspecial\scharacters\swhere\sonly\sa\svery\slimited\snumber\sof\spersons\sknow\s(and\sunderstand)\sthe\sByte\sCodes.\r\n\r\nAny\sopinion\swelcome.\r\n\r\nThank\syou,\r\nHarald
J login oehhar
J mimetype text/x-fossil-wiki
J username oehhar
K 535705ffffffffffffffffffffffffffffffffff
U oehhar
Z c3fed893d433f53a2093afe066afa03c