Commit 91e65f2f2adf3142a8fdf49ea1795e9d0f02f1a0
1 parent
2555e645
Exists in
rhitier-dev
Fix the utf8 encoding for yaml
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
web/run.py
@@ -53,7 +53,9 @@ with open(get_path('../VERSION'), 'r') as version_file: | @@ -53,7 +53,9 @@ with open(get_path('../VERSION'), 'r') as version_file: | ||
53 | version = version_file.read().strip() | 53 | version = version_file.read().strip() |
54 | 54 | ||
55 | # CONFIG | 55 | # CONFIG |
56 | -with open(get_path('../config.yml'), 'r') as config_file: | 56 | + |
57 | + | ||
58 | +with open(get_path('../config.yml'), 'r', encoding='utf8') as config_file: | ||
57 | config = yaml_load(config_file.read(), Loader=Loader) | 59 | config = yaml_load(config_file.read(), Loader=Loader) |
58 | 60 | ||
59 | FILE_DATE_FMT = "%Y-%m-%dT%H:%M:%S" | 61 | FILE_DATE_FMT = "%Y-%m-%dT%H:%M:%S" |