mirror of
https://github.com/theroyallab/tabbyAPI.git
synced 2026-03-14 15:57:27 +00:00
YAML: Force all files to open with utf8
The default encoding method when opening files on Windows is cp1252 which doesn't support all unicode and can cause issues. Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
2
main.py
2
main.py
@@ -229,7 +229,7 @@ if __name__ == "__main__":
|
||||
|
||||
# Load from YAML config. Possibly add a config -> kwargs conversion function
|
||||
try:
|
||||
with open('config.yml', 'r') as config_file:
|
||||
with open('config.yml', 'r', encoding = "utf8") as config_file:
|
||||
config = yaml.safe_load(config_file) or {}
|
||||
except Exception as e:
|
||||
print(
|
||||
|
||||
Reference in New Issue
Block a user