diff --git a/figurefirst/svg_to_axes.py b/figurefirst/svg_to_axes.py index 01fd2ed..44ec34d 100644 --- a/figurefirst/svg_to_axes.py +++ b/figurefirst/svg_to_axes.py @@ -1444,7 +1444,7 @@ def write_svg(self, output_filename): self.output_xml.writexml(outfile, encoding="utf-8") except UnicodeEncodeError: outfile.close() - outfile = open(output_filename, "w") + outfile = open(output_filename, "wb") outfile.write(self.output_xml.toxml().encode("ascii", "xmlcharrefreplace")) outfile.close()