Skip to content

Commit

Permalink
fix encoding when writing configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Jul 30, 2022
1 parent 5faa313 commit 987a196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wis2box_api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def yaml_dump(self, dict_, destfile) -> bool:
LOGGER.debug('Dumping YAML document')
with tempfile.NamedTemporaryFile(delete=False) as fh:
temp_filename = fh.name
yaml.safe_dump(dict_, fh, sort_keys=False,
yaml.safe_dump(dict_, fh, sort_keys=False, encoding='utf8',
default_flow_style=False)

LOGGER.debug(f'Moving {temp_filename} to {destfile}')
Expand Down

0 comments on commit 987a196

Please sign in to comment.