mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-09-13 07:21:16 +00:00
Assert text files are in utf8 (#350)
Read and write text files with utf8 encoding. Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
@@ -286,7 +286,7 @@ def main():
|
||||
openapi_md = generate_openapi_md()
|
||||
if args.output_file:
|
||||
# Write to file
|
||||
with open(args.output_file, "w") as f:
|
||||
with open(args.output_file, "w", encoding="utf8") as f:
|
||||
f.write(openapi_md)
|
||||
else:
|
||||
# Write to std output
|
||||
|
Reference in New Issue
Block a user