summaryrefslogtreecommitdiff
path: root/tools/make_schema.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/make_schema.py')
-rwxr-xr-xtools/make_schema.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/make_schema.py b/tools/make_schema.py
index 2d409f7..84665d6 100755
--- a/tools/make_schema.py
+++ b/tools/make_schema.py
@@ -2,7 +2,7 @@
import xml.dom.minidom
-import os, sys
+import io, os, sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from caribou.settings import caribou_settings
@@ -21,7 +21,7 @@ class SchemasMaker:
schemafile.appendChild(schema)
self._create_schema(self.settings, doc, schema)
- fp = open(output, 'w')
+ fp = io.open(output, 'w', encoding='UTF-8')
self._pretty_xml(fp, schemafile)
fp.close()