MitjaNemec / Kicad_action_plugins

Kicad action plugins
413 stars 62 forks source link

Read schematic files as UTF-8 #98

Closed sur5r closed 4 years ago

sur5r commented 4 years ago

This allows for UTF-8 in schematic files. As ASCII is also valid UTF-8, this is a non-breaking change.

I think applying the same change to https://github.com/MitjaNemec/Kicad_action_plugins/blob/master/save_restore_layout/save_restore_layout.py#L188 should help with #85, but as I don't use save_restore_layout I couldn't verify this.

MitjaNemec commented 4 years ago

Thanks for you contribution. I really appreciate it.

MitjaNemec commented 4 years ago

FYI, this only works with python3. So I've had to override default open with io.open for python 2.7 compatibility