Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong number in converting number to utf8 #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hairyhum
Copy link
Contributor

@hairyhum hairyhum commented Apr 8, 2014

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

@hairyhum
Copy link
Contributor Author

Added surrogate utf16 decoding

@archydragon
Copy link

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
Copy link

saltos commented May 29, 2014

"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