Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

support escapeUnicode(false) #289

Copy link
Copy link
@ovoled

Description

@ovoled
Issue body actions

There is issue #73 where escapeUnicode = false support was brought through Config.
But there is also method public static String serialize(boolean escapeUnicode, Type type, Object obj) which ignores it's direct parameter escapeUnicode.

Example:

	public static void main(final String[] args) {
		final String obj = "Привет";
		System.err.println(JsonStream.serialize(new Config.Builder().escapeUnicode(false).build(), obj)); //ok
		System.err.println(JsonStream.serialize(false, obj.getClass(), obj)); //not ok
	}

Output:

"Привет"
"\u041f\u0440\u0438\u0432\u0435\u0442"
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.