diff --git a/openformats/formats/docx.py b/openformats/formats/docx.py index faee468..11fdb1b 100644 --- a/openformats/formats/docx.py +++ b/openformats/formats/docx.py @@ -103,6 +103,10 @@ def __init__(self, content): base_rels_path = '{}/{}'.format(self.__tmp_folder, '_rels/.rels') with io.open(base_rels_path, 'r') as f: base_rels = f.read() + + if base_rels.startswith("\ufeff"): + # Remove BOM + base_rels = base_rels.replace("\ufeff", "") document_relative_path = next(( relationship