jsonx icon indicating copy to clipboard operation
jsonx copied to clipboard

Wrong number in converting number to utf8

Open hairyhum opened this issue 10 years ago • 3 comments

2 byte utf8 range should be 0x800 - 0x10000 Added tests with chinese characters

hairyhum avatar Apr 08 '14 08:04 hairyhum

Added surrogate utf16 decoding

hairyhum avatar Apr 10 '14 08:04 hairyhum

It would be great to have this patch in main jsonx repo! The following fix notabely :) :

-  }else if(ucs < 0x1000) {
+  }else if(ucs < 0x10000) {

archydragon avatar May 04 '14 13:05 archydragon

"Fixed error in ucs_to_utf" +1

saltos avatar May 29 '14 05:05 saltos