Browse Source

Set ensure_ascii=False to draw CJK in JSON

Kentaro Wada 7 years ago
parent
commit
3041525b1b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      labelme/labelFile.py

+ 1 - 1
labelme/labelFile.py

@@ -90,7 +90,7 @@ class LabelFile(object):
             data[key] = value
         try:
             with open(filename, 'wb' if PY2 else 'w') as f:
-                json.dump(data, f, ensure_ascii=True, indent=2)
+                json.dump(data, f, ensure_ascii=False, indent=2)
             self.filename = filename
         except Exception as e:
             raise LabelFileError(e)