jmplonka / InventorLoader

Workbench for FreeCAD to loads or import Autodesk (R) Inventor (R) files.
GNU General Public License v2.0
115 stars 17 forks source link

codec error with some Windows locales #41

Open 99RP opened 3 years ago

99RP commented 3 years ago

Using Greek locale on windows produces codec error when attempting to import IP file.

image

Produces: ['charmap' codec can't decode byte 0x9f in position 2258: character maps to <undefined>]

jmplonka commented 3 years ago

Hello, I‘m sad that you‘re struggling with the encoding. Unfortunately I won‘t be able to work on this until end of next week. I didn‘t made any restrictions on the branches – but will check it.

jmplonka commented 3 years ago

please, could you share the example as well?

maroly-ppp commented 3 years ago

Thank you for useful tools. This may not relate to the thread, some environment (including Japanese cp932) required utf-8 option in opening function. e.g.: with open(os.path.join(os.path.dirname(os.path.abspath(file)),"colors.json"),encoding="utf-8") as colorPalette: in importerUtils.py, line 179.