diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-08-22 14:02:53 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-08-22 14:02:53 -0400 |
| commit | d02ddff4753f89f913613a10cfa766d86f80d9a9 (patch) | |
| tree | 683b295a03387c269b4cb85015752bee66d6ce40 /lib | |
| parent | 9382532dc2c147e72f83a9035a9acb54a238e4c8 (diff) | |
handle unicode in inx generation
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/inx/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/inx/utils.py b/lib/inx/utils.py index 6103f360..cd0fdc6e 100644 --- a/lib/inx/utils.py +++ b/lib/inx/utils.py @@ -28,7 +28,7 @@ def build_environment(): def write_inx_file(name, contents): inx_file_name = "inkstitch_%s_%s.inx" % (name, current_locale) with open(os.path.join(inx_path, inx_file_name), 'w') as inx_file: - print >> inx_file, contents + print >> inx_file.encode("utf-8"), contents def iterate_inx_locales(): global current_translation, current_locale |
