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

Cyrillic display #238

Open
anikev opened this issue Aug 10, 2022 · 2 comments
Open

Cyrillic display #238

anikev opened this issue Aug 10, 2022 · 2 comments

Comments

@anikev
Copy link

anikev commented Aug 10, 2022

Hello, Cyrillic displays like this:
{
"name": "\u041C\u0412 049 3\u04450,3 \u043F\u0440\u0438\u043F\u043E\u0439 \u043B\u0435\u043D\u0442\u0430 (\u0442\u0440\u0435\u0445\u0441\u043B\u043E\u0439\u043D\u044B\u0439), ",
"vendorcode": "\u041C\u04120493.0
}
How to fix it?

@houghtonap
Copy link

Those \uXXXX are the Unicode code points for your Cyrillic characters, i.e., \u041c. So VBA-JSON created a correct JSON representation of the data. There is nothing to fix. Now we argue whether VBA-JSON should embed the Unicode code points directly, but doing it either way results in a correct JSON representation of the data.

@Nick-vanGemeren
Copy link

ECMA-404, the JSON specification, leaves open the choice of escaping (most) Unicode code points. Using escapes results in an ASCII text which can be transmitted or stored without worrying about interference from the local code page, but may not be easily human-readable.

If human-readable text is essential, you can try the solution in pull request #168.
If that solves your issue, please close your issue here.

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

3 participants