OrderedSet86 / gtnh-flow

Factory Optimization Flowcharts for Gregtech: New Horizons
MIT License
80 stars 24 forks source link

Fix UnicodeDecodeError #9

Closed 704009905 closed 1 year ago

704009905 commented 1 year ago

Support non-Unicode codecs like gbk to give better language compatibility. UnicodeDecodeError occurs when flowchart yaml contains non-Unicode characters. To give proper result, the user should change GENERAL_FONT, SUMMARY_FONT, and GROUP_FONT in config_factory_graph.yaml to support their language. And to support machine overclock with multilingual machine names, src/gtnh/overclocks.py need a lot of changes, so I didn't bother with it for now.

OrderedSet86 commented 1 year ago

Hopefully multilingual names can be better with data exporter tools in the future