Skip to content

Wrong number in converting number to utf8#18

Open
hairyhum wants to merge 4 commits into
iskra:masterfrom
hairyhum:master
Open

Wrong number in converting number to utf8#18
hairyhum wants to merge 4 commits into
iskra:masterfrom
hairyhum:master

Conversation

@hairyhum

@hairyhum hairyhum commented Apr 8, 2014

Copy link
Copy Markdown
Contributor

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

@hairyhum

Copy link
Copy Markdown
Contributor Author

Added surrogate utf16 decoding

@archydragon

Copy link
Copy Markdown

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

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

@saltos

saltos commented May 29, 2014

Copy link
Copy Markdown

"Fixed error in ucs_to_utf"
+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants