diff --git a/yamale/readers/yaml_reader.py b/yamale/readers/yaml_reader.py index 59696b3..68c400a 100644 --- a/yamale/readers/yaml_reader.py +++ b/yamale/readers/yaml_reader.py @@ -31,7 +31,7 @@ def parse_yaml(path=None, parser='pyyaml', content=None): if (path is None and content is None) or (path is not None and content is not None): raise TypeError("Pass either path= or content=, not both") if path is not None: - with open(path) as f: + with open(path, encoding='utf8') as f: return parse(f) else: return parse(StringIO(content))