Skip to content

Commit

Permalink
Merge pull request #22 from douglasrennick/fix-ome-xml-encoding
Browse files Browse the repository at this point in the history
Add explicit utf-8 encoding for OME-XML
  • Loading branch information
chris-allan authored Oct 19, 2020
2 parents 0b69518 + b9ef4e1 commit 9f0478e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isyntax2raw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def write_metadata(self):
template = loader.import_("isyntax2raw.resources.ome_template")
xml = template(xml_values).render()
ome_xml_file = os.path.join(self.slide_directory, "METADATA.ome.xml")
with open(ome_xml_file, "w") as omexml:
with open(ome_xml_file, "w", encoding="utf-8") as omexml:
omexml.write(xml)

def get_size(self, dim_range):
Expand Down

0 comments on commit 9f0478e

Please sign in to comment.