From 984dca115d5fa1fe695fa50c27a2cc60cc61aca8 Mon Sep 17 00:00:00 2001 From: Daniel Swanson Date: Thu, 19 Sep 2024 21:43:01 -0400 Subject: [PATCH] fix(export): Windows sometimes needs output encoding specified --- rebabel_format/processes/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebabel_format/processes/export.py b/rebabel_format/processes/export.py index cb29493..9e6d447 100644 --- a/rebabel_format/processes/export.py +++ b/rebabel_format/processes/export.py @@ -20,5 +20,5 @@ def run(self): self.mappings[0], self.mappings[1], self.conf, self.other_args, query_updates=self.query_updates) - with open(self.outfile, 'w') as fout: + with open(self.outfile, 'w', encoding='utf-8') as fout: writer.write(fout)