[V3 Core] Encoding issue fix (#1365)

* Don't let the system encoding screw with things,
specify opens as happening with utf-8 encoding

* And also deal with encoding issues because windows is a special snowflake
(see: #1366)

* let's just use the encoding param in str() rather than encode/decode...
This commit is contained in:
Michael H
2018-03-04 13:02:04 -05:00
committed by Will
parent 3816385228
commit f6903cf582
5 changed files with 15 additions and 12 deletions

View File

@@ -465,7 +465,7 @@ class Trivia:
raise FileNotFoundError("Could not find the `{}` category"
"".format(category))
with path.open() as file:
with path.open(encoding='utf-8') as file:
try:
dict_ = yaml.load(file)
except yaml.error.YAMLError as exc: