Procházet zdrojové kódy

Set ensure_ascii=False to draw CJK in JSON

Kentaro Wada před 7 roky
rodič
revize
3041525b1b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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)