Artifacts Associated With Ticket 505694ffffffffffffffffffffffffffffffffff
Ticket change [2f5933c3cd] (rid 93049) by nobody on 2002-01-19 07:43:33:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
I want to change a Chinese character, which unicode value is \u4e2d, to hex.the following is my commands. set a \u4e2d binary scan $a H* b after I run the two commands, the value of variable b is 2d, not 4e2d. who can tell me why? thanks my email : [email protected]
- foundin initialized to: "obsolete: 8.3.4"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "binay scan can't work correctly"
- type initialized to: "Bug"
Ticket change [38f2159ae6] (rid 112303) by hobbs on 2002-01-20 09:10:37:
- closedate changed to: "2002-01-20T02:10:37"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 You want "format %x [scan \u4e2d %c]", as is: (hobbs) 60 % format %x [scan \u4e2d %c] 4e2d \u4e2d is not binary, it's just a utf-8 string, so use the regular scan.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "hobbs"
Ticket change [5567d5a4f9] (rid 94126) by dkf on 2002-01-21 16:44:11:
- closedate changed to: "2002-01-21T09:44:11"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 A better solution is: binary scan [encoding convertto unicode $a] H* b (because that is better at dealing with characters with the highest bit set.)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"