.
D 2012-03-08T03:37:46
J icomment So,\snow\swe\shave\s3\sattempts\sin\sthis\sbranch.\sThanks!\n\nHowever,\sI'm\snot\ssatisfied\swith\sany\sof\sthem,\salthough\nup\sto\snow\ssebres'\sone\swas\sthe\smost\sclever.\n\nCurrently\sI\sam\sthinking\sabout\sbuilding\sit\sin\nthe\schannel\scode:\ssomething\slike\sa\schannel\noption\s"-checkbom\strue",\swhich\shas\sthe\seffect\nthat\sthe\schannel\sfirst\swaits\sfor\sthe\snext\s3\nbytes,\sand\schecks\sif\sit\sis\sthe\sBOM.\sIf\sso,\nit\soutputs\sutf-8\sBOM\sand\sswitches\nencoding\sto\sutf-8,\sotherwise\scontinue\nas\sbefore.\sAdvantage:\sthe\schannel\ncode\shas\saccess\sto\sthe\sbinary\nbuffer,\sso\sdoesn't\sneed\sto\sdo\nso\smuch\strickery.\n\nDisadvantage:\sA\snew\schannel\noption\sneeds\sa\sTIP.\n
J login nijtmans
J mimetype text/plain
J username nijtmans
K 3466099fffffffffffffffffffffffffffffffff
U nijtmans
Z 92d0e0f41dee7b9c02606447d7df08eb