JSON supports Unicode, which makes it useful for software used in the USA, UK, Canada, Australia and China. But international text still fails when a file is saved with the wrong encoding or a client mistakes byte sequences for characters. This guide focuses on JSON Unicode, UTF-8, escaped strings and how to troubleshoot unreadable text.
\n

\n
What you will learn: This focused guide covers json unicode utf-8 with working-style examples, common problems and the next checks needed before relying on the result. Use synthetic inputs when practising online.
JSON strings can represent international characters
A JSON string is not limited to English letters. It may contain Chinese characters, accented text and emoji as long as the document is correctly encoded and valid. The current JSON specification requires UTF-8 when systems exchange JSON outside closed ecosystems.
{"city":"北京","greeting":"你好","name":"Chloé","emoji":"🎉"}
These strings are ordinary JSON values, not special data types. The same structural rules apply: double quotes for keys and values, escaped interior quotation marks and proper commas.
Understand UTF-8 and visible escape sequences
A text editor may show characters directly or as Unicode escapes such as u4F60u597D. These representations can describe the same decoded string, but the escaped form is longer and less readable. Problems occur when one program decodes UTF-8 bytes using another encoding, or when content is escaped more than once.
{"direct":"你好","escaped":"\u4F60\u597D"}
To diagnose a problem, inspect the original bytes and the decoding settings rather than replacing every backslash mechanically. Backslash escaping is part of JSON grammar; wrong replacement can change data.
Python: save Unicode with ensure_ascii=False
Python’s json module can serialize Unicode visibly. Set ensure_ascii=False and open the file with encoding=”utf-8″. Without ensure_ascii=False, Python may emit ASCII escape sequences, which remain valid JSON but are less convenient for people reading the file.
import json
record = {"city":"上海","name":"Élodie"}
with open("global.json","w",encoding="utf-8") as f:
json.dump(record,f,ensure_ascii=False,indent=2)
When reading back, use the same encoding. Test the result both in a developer editor and with your application’s parser.
JavaScript and HTTP handling
In a browser, JSON.parse works with JavaScript strings, while response.json decodes and parses a response body. For APIs, ensure that the server sends a suitable Content-Type and that text is transferred in an interoperable encoding. Avoid inventing charset workarounds when the source system is the real cause.
const data = JSON.parse('{"city":"深圳","active":true}');
console.log(data.city);
Problems seen in one web browser might originate from data stored incorrectly in a database earlier in the pipeline, so investigate each encoding boundary.
Global data-design checklist
Test multilingual names, addresses, emoji and right-to-left or combining text as appropriate. Do not validate names with an ASCII-only expression. Preserve identifiers exactly, including capitalization and leading zeros. Agree on ISO-style country codes and currency codes separately from text. Use consistent time standards for software crossing US, UK, Canadian, Australian and Chinese time zones.Be careful when trimming or normalizing user input. Unicode normalization can change the byte representation without changing the apparent characters; apply a deliberate rule when exact matching matters.
Frequently asked questions
Does JSON support Chinese? Yes. Should I use UTF-8? Yes, it is the interoperable standard for exchanged JSON. Are u escapes invalid? No, they are legal string escapes. Why is Chinese text garbled? Often the bytes were decoded using the wrong character encoding. Do emojis count as one character? Counting depends on code points, grapheme clusters and the language’s string model. Can a formatter fix broken encoding? It can display valid input, but it cannot always recover already corrupted text.
Quick implementation and quality checklist
- Confirm that the input is valid JSON or an expected source format before transforming it.
- Check the expected field types, nested structure, empty values and error cases.
- Use correct UTF-8 handling for multilingual content and protect user or client privacy.
- Define currency and time-zone rules explicitly for distributed projects serving the USA, UK, Canada, Australia and China.
- Verify a small representative output against the receiving application’s contract.
These checks support reuse across markets without assuming that every commercial tool or hosted service is available worldwide.
Try related free tools on Perkability Rewards
The links below open existing tools directly, not a new landing page. For context, also see our previously published JSON error fixes and nested JSON arrays articles.
- JSON Formatter: practise with test examples related to this subject.
- URL Encoder & Decoder: practise with test examples related to this subject.
Technical sources and further reading:
Advertising disclosure: This tutorial includes a clearly labeled 160×600 advertising banner and a social-bar script. The scripts are managed by a third-party advertising network; actual delivery varies by browser and platform settings. No claim of search-ranking or traffic results is made.

One Response