-
Notifications
You must be signed in to change notification settings - Fork 47
Open
Description
Hi folks!
First of all thanks for all efforts put into this project!
I have some schematics where accented characters were present in the texts and got some exceptions:
Traceback (most recent call last):
File "altium.py", line 1615, in <module>
main()
File "altium.py", line 420, in main
render(args.file, renderer.Renderer)
File "altium.py", line 590, in __init__
self.handle_children([objects])
File "altium.py", line 627, in handle_children
handler(self, owners, obj)
File "altium.py", line 996, in handle_text_frame
text=obj["TEXT"].decode("utf-8").replace("~1", "\n"),
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 5: invalid start byte
The problematic text was the following:
b'1x5 t\xfcskesor~190\xb0, 1,27mm'
Which corresponds to:
1x5 tüskesor\n90°, 1,27mm
I will do some experiments to map all the accented and special characters, but I am under an impression that Altium uses latin1 character encoding rather than plain ASCII.
Metadata
Metadata
Assignees
Labels
No labels