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

json file - unicode escaping #614

Open
Jitterer opened this issue Jan 14, 2022 · 0 comments
Open

json file - unicode escaping #614

Jitterer opened this issue Jan 14, 2022 · 0 comments

Comments

@Jitterer
Copy link

Hi,
when I use

{% autoescape "json" %}
{
    "key" : "hellü"
}
{% endautoescape %}

the result is

{
    "key" : "hell\u00FC"
}

But I dont want the strings encoded to unicode entities when I'm already creating a utf8 text file with this json string in it - it is just unneeded and unwanted (for my case)

The result should just be this:

{
    "key" : "hellü"
}

https://datatracker.ietf.org/doc/html/rfc7159#section-7
section 7 and 8 describes, that only json control characters has to be forced to be encoded. I want to request to make it at least configurable.

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