Skip to content

Unicode support #211

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

Closed
hungptit opened this issue Oct 18, 2018 · 1 comment
Closed

Unicode support #211

hungptit opened this issue Oct 18, 2018 · 1 comment

Comments

@hungptit
Copy link

hungptit commented Oct 18, 2018

The encoded Json string using json-iterator looks is different from that of gson and it breaks our test suite (see sample output below). Does json-iterator support utf8?

json-iterator encoded string

2018-10-17 21:24:02 ERROR main Decode:117 - J{"response":"foo","op":"ack","sessionId":"testClient","messageId":"ms
2018-10-17 21:24:02 ERROR main Decode:118 - gId"}�{"response":"\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u043
2018-10-17 21:24:02 ERROR main Decode:119 - 5 \u4f60\u597d ch\u00e0o!","op":"ack","sessionId":"testClient","messageId":"msgId"}

gson encoded string

2018-10-17 21:28:11 ERROR main Decode:117 - J{"response":"foo","op":"ack","sessionId":"testCli
2018-10-17 21:28:11 ERROR main Decode:118 - ent","messageId":"msgId"}m{"response":"Здравствуйте 你好
2018-10-17 21:28:11 ERROR main Decode:119 -  chào!","op":"ack","sessionId":"testClient","messageId":"msgId"}
@hungptit
Copy link
Author

I read the doc and it turns out utf-16 is supported by default. I will close this ticket.

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

No branches or pull requests

1 participant