dzhibas / SublimePrettyJson

Prettify/Minify/Query/Goto/Validate/Lint JSON plugin for Sublime Text 3 & 4
MIT License
2.02k stars 181 forks source link

Chinese becomes unicode code when formatting #137

Closed pihao closed 3 years ago

pihao commented 3 years ago

https://user-images.githubusercontent.com/3308394/119655449-2e6b8880-be5c-11eb-8478-203bb5aadce2.mov

Sublime Text version: 4107 PrettyJson version: v1.0.5

feueraustreter commented 3 years ago

I have the same problem with German umlauts:

Before: { "street": "Münchener Straße 1" } After prettifying: { "street": "M\u00fcnchener Stra\u00dfe 1" }

Sublime 4: Stable Channel, Build 4107 Pretty Json: v1.0.5 Platform: macOS 10.15.7

feueraustreter commented 3 years ago

With the following setting you can fix the error with German umlauts: "ensure_ascii": false

Has the default setting been changed?

TerminalFi commented 3 years ago

It did get changed with ST4 but this is a error. I will revert back to it's default false

TerminalFi commented 3 years ago

Fixed