| Description: |
ncgi does not handle U+10000 to U+10FFFF.
Currently it returns the char as 1-byte chars.
Recently, I have been dealing more and more with surrogate pair characters
and variant selectors, and would like to see support for these characters.
package require ncgi
#U+20BB7
set char "%F0%A0%AE%B7"
set bin [encoding convertto utf-8 [ncgi::decode $char]]
puts [binary encode hex $bin];#shoud be f0a0aeb7
#U+8FBB U+E0100
set char "%E8%BE%BB%F3%A0%84%80"
set bin [encoding convertto utf-8 [ncgi::decode $char]]
puts [binary encode hex $bin];#shoud be e8bebbf3a08480
|