Skip to content

Commit 46ab8bd

Browse files
authored
Encode JSON in unicode (#43)
1 parent 6a7f056 commit 46ab8bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

_validate/createJson.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def generateJsonFile(
6262
filePath = buildOutputFilePath(data, parentDir)
6363

6464
with open(filePath, "wt", encoding="utf-8") as f:
65-
json.dump(data, f, indent="\t")
65+
json.dump(data, f, indent="\t", ensure_ascii=False)
6666
print(f"Wrote json file: {filePath}")
6767

6868

_validate/regenerateTranslations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def regenerateJsonFile(filePath: str, errorFilePath: Optional[str]) -> None:
4545
)
4646

4747
with open(filePath, "wt", encoding="utf-8") as f:
48-
json.dump(addonData, f, indent="\t")
48+
json.dump(addonData, f, indent="\t", ensure_ascii=False)
4949
print(f"Wrote json file: {filePath}")
5050

5151

0 commit comments

Comments
 (0)