.
D 2002-07-10T00:41:27
J icomment Logged\sIn:\sYES\s\nuser_id=50020\n\nTo\ssay\sthat\sJava\sand\sWindows\ssupport\sUCS2\sonly\smisstates\ntheir\scapabilities.\s\sBoth\sJava\sand\sWindows\shave\ssupport\sfor\nsurrogates.\s\sThat's\spartially\sbecause\ssurrogates\sare\sused\nextensively\sin\ssupporting\sChinese,\sespecially\sthe\sadditions\nto\sUnicode\s3.2\sfrom\sthe\sHong\sKong\sSupplementary\sCharacter\nSet.\sThere\sis\sno\sreason\sto\smove\sthe\s16-bit\sAPIs\sto\s32-bit\nvalues;\sUCS-2\sis\sa\sperfectly\svalid\sUnicode\sencoding,\sit\sjust\nmust\sallow\sfor\sthe\spresense\sof\ssurrogates\sand\srespond\naccordingly.\n\nThere\sare\sa\sfew\sTcl\sAPIs\swhich\scannot\spass\ssurrogate\spairs,\none\sof\sthose\sis\sthe\sUTF8\sto\sTcl_UniChar\sAPI.\n\nThe\sproblem\sis\sthat\sUTF-8\sdoesn't\suse\ssurrogates,\sand\sso\napplications\susing\sUTF-8\sexpect\sthe\sfull\srange\sof\sUnicode\nvalues\sto\sbe\sencoded\swithout\sthem.\s\sConverting\sfrom\sUTF-8\sto\nUCS-2\sshould\sautomatically\sinsert\ssurrogates\swhile\nconverting\sback\sshould\sreplace\sthem\swith\sthe\sconjoined\svalue.\n\nPlaces\sin\sthe\sAPI\swhich\sdeal\swith\sa\ssingle\scodepoint\sin\nrelation\sto\sits\sUTF-8\sencoding\sshould\sprovide\san\sadditional\n32-bit\sinterface.\n
J login keithp
J mimetype text/plain
J username keithp
K 578030ffffffffffffffffffffffffffffffffff
U keithp
Z 7b8cfdd099acab5382f5340f38efd4b0