diff --git a/sssekai/__init__.py b/sssekai/__init__.py index 2ade290..c5a2d3d 100644 --- a/sssekai/__init__.py +++ b/sssekai/__init__.py @@ -1,5 +1,5 @@ __VERSION_MAJOR__ = 0 __VERSION_MINOR__ = 2 -__VERSION_PATCH__ = 7 +__VERSION_PATCH__ = 8 __version__ = '%s.%s.%s' % (__VERSION_MAJOR__,__VERSION_MINOR__,__VERSION_PATCH__) diff --git a/sssekai/entrypoint/rla2json.py b/sssekai/entrypoint/rla2json.py index de5a1ab..57bce6b 100644 --- a/sssekai/entrypoint/rla2json.py +++ b/sssekai/entrypoint/rla2json.py @@ -13,7 +13,7 @@ def worker_job(sname, version, script): rla = read_rla(BytesIO(script), version) - dump(rla, open(sname + '.json', 'w'), indent=4, ensure_ascii=False) + dump(rla, open(sname + '.json', 'w', encoding='utf-8'), indent=4, ensure_ascii=False) def main_rla2json(args): with open(args.infile,'rb') as f: @@ -27,7 +27,7 @@ def main_rla2json(args): assert header, "RLH Header file not found!" makedirs(args.outdir, exist_ok=True) header = loads(header.text) - dump(header, open(path.join(args.outdir, 'sekai.rlh.json'), 'w'), indent=4, ensure_ascii=False) + dump(header, open(path.join(args.outdir, 'sekai.rlh.json'), 'w', encoding='utf-8'), indent=4, ensure_ascii=False) version = tuple(map(int, header['version'].split('.'))) splitSeconds = header['splitSeconds'] logger.info('Version: %d.%d' % version)