Ensure XML Schema file is opened using utf-8 encoding.
This commit is contained in:
parent
dafa817433
commit
90f87328c8
|
@ -426,7 +426,7 @@ class Invoice(metaclass=PoolMeta):
|
||||||
schema_file_path = os.path.join(
|
schema_file_path = os.path.join(
|
||||||
module_path(),
|
module_path(),
|
||||||
'Facturaev3_2_1-offline.xsd')
|
'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)
|
facturae_schema = etree.XMLSchema(file=schema_file)
|
||||||
logger.debug("Schema Facturaev3_2_1-offline.xsd loaded")
|
logger.debug("Schema Facturaev3_2_1-offline.xsd loaded")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue