feat(tools): Enforce utf-8 encoding with open() function

This commit is contained in:
Marek Fiala
2025-01-02 16:12:47 +01:00
parent dbe1e41c6f
commit 3cca3da1d5
33 changed files with 102 additions and 114 deletions
+1 -1
View File
@@ -591,7 +591,7 @@ def main():
if input_is_binary:
output = table.to_csv()
with sys.stdout if args.output == '-' else open(args.output, 'w') as f:
with sys.stdout if args.output == '-' else open(args.output, 'w', encoding='utf-8') as f:
f.write(output)
else:
output = table.to_binary()