Skip to content

Commit 464159f

Browse files
authored
Use explicit UTF-8 encoding for icdar13_recognition annotation converter (#4062)
1 parent eda1863 commit 464159f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/accuracy_checker/accuracy_checker/annotation_converters

‎tools/accuracy_checker/accuracy_checker/annotation_converters/icdar.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def convert(self, check_content=False, progress_callback=None, progress_interval
178178
content_errors = []
179179
self.images_dir = self.images_dir or self.annotation_file.parent
180180

181-
original_annotations = read_txt(self.annotation_file)
181+
original_annotations = read_txt(self.annotation_file, encoding='utf-8')
182182
num_iterations = len(original_annotations)
183183

184184
for line_id, line in enumerate(original_annotations):

0 commit comments

Comments
 (0)