Skip to content

The tilde (~) character appears incorrectly serialized #299

@yv13

Description

@yv13

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":"��"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions