Ensure XML Schema file is opened using utf-8 encoding.

This commit is contained in:
Albert Cervera i Areny 2018-08-19 20:07:56 +02:00
parent dafa817433
commit 90f87328c8
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ class Invoice(metaclass=PoolMeta):
schema_file_path = os.path.join(
module_path(),
'Facturaev3_2_1-offline.xsd')
with open(schema_file_path) as schema_file:
with open(schema_file_path, encoding='utf-8') as schema_file:
facturae_schema = etree.XMLSchema(file=schema_file)
logger.debug("Schema Facturaev3_2_1-offline.xsd loaded")