Skip to content
Tcl Source Code Artifact [2e2caf0225]
Login

Artifact [2e2caf0225]

Artifact 2e2caf0225396f8f2e893be85df77048f05dfd566ef0932b67328f216bd0c2ba:

Ticket change [2e2caf0225] - Ticket [9f9c828fde97a4c8|9f9c828fde] <i>trim issue with chinese characters</i> status still Open with 3 other changes by anonymous on 2024-11-06 10:00:15.
D 2024-11-06T10:00:15.096
J icomment Hi\ssorry\sfor\sthe\smissing\sinfo:\r\n\r\nRed\sHat\sEnterprise\sLinux\srelease\s8.5\s(Ootpa)\r\n\r\necho\s'puts\s$tcl_version;exit\s0'\s|\stclsh\r\n8.6\r\n\r\nIt\slooks\sit\sis\san\sissue\swith\sTCL\susing\siso8859-1\s(default\sencoding\sfor\sTCL8.6)\r\n\r\n\r\nset\scomment\s"测试包装"\r\nset\scomment\s[encoding\sconvertto\sutf-8\s$comment]\r\n\r\n\r\nputs\s[binary\sencode\shex\s$comment]\r\n\r\nputs\s$comment\r\nset\scomment\s[string\strim\s$comment]\r\nputs\s[binary\sencode\shex\s$comment]\r\n\r\nputs\s$comment\r\n\r\n\r\nwithout\s[encoding\sconvertto\sutf-8\s$comment]\sthe\sstring\srepresentation\swill\snot\sbe\sUTF-8\son\scommand\sline\r\n\r\nBut\srunning\sunder\sApache\sas\sCGI\sit\sis\susing\sUTF-8\sas\sdefault,\scausing\sthis\sissue.
J login anonymous
J mimetype text/plain
K 9f9c828fde97a4c8a7a528dec3482ecce0838419
U anonymous
Z 2bd16ccf81fb981a059a3abca8b033cd