pascal-voc-writer
pascal-voc-writer copied to clipboard
XML Encoding cannot be set.
Change your init.py from this:
def save(self, annotation_path): with open(annotation_path, 'w') as file: content = self.annotation_template.render(**self.template_parameters) file.write(content)
to this:
def save(self, annotation_path, encoding="UTF-8"): with open(annotation_path, 'w', encoding=encoding) as file: content = self.annotation_template.render(**self.template_parameters) file.write(content)
to allow saving of xml files with different file encodings.