pascal-voc-writer icon indicating copy to clipboard operation
pascal-voc-writer copied to clipboard

XML Encoding cannot be set.

Open ChrTopf-Corporate opened this issue 6 months ago • 0 comments

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.

ChrTopf-Corporate avatar Aug 21 '24 14:08 ChrTopf-Corporate