Skip to content

The tilde (~) character appears incorrectly serialized #299

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
yv13 opened this issue Jun 17, 2021 · 1 comment · Fixed by #307
Closed

The tilde (~) character appears incorrectly serialized #299

yv13 opened this issue Jun 17, 2021 · 1 comment · Fixed by #307

Comments

@yv13
Copy link

yv13 commented Jun 17, 2021

To illustrate with a test case:

var o = new HashMap<String,Object>();
o.put("tilde", "~");
assertEquals("{\"tilde\":\"~\"}", JsonStream.serialize(new Config.Builder().escapeUnicode(false).build(), o));
org.junit.ComparisonFailure: 
Expected :{"tilde":"~"}
Actual   :{"tilde":"��"}
@gokce-nur00
Copy link

Is is still open?

svobol13 added a commit that referenced this issue Jan 23, 2022
@svobol13 svobol13 linked a pull request Jan 23, 2022 that will close this issue
@svobol13 svobol13 removed a link to a pull request Jan 23, 2022
@svobol13 svobol13 linked a pull request Jan 23, 2022 that will close this issue
svobol13 added a commit that referenced this issue Jan 23, 2022
svobol13 added a commit that referenced this issue Jan 23, 2022
…e, Type type, Object obj)' implementation. Fixes #289, #299.
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 a pull request may close this issue.

2 participants