Преглед изворни кода

Set ensure_ascii=False to draw CJK in JSON

Kentaro Wada пре 7 година
родитељ
комит
3041525b1b
1 измењених фајлова са 1 додато и 1 уклоњено
  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)