jmelesky / omwllf

OpenMW leveled list fixer
ISC License
38 stars 9 forks source link

getting utf-8 error #16

Closed calrissian-tendra closed 2 years ago

calrissian-tendra commented 2 years ago

/data/user/0/org.qpython.qpy3/files/bin/qpython3-android5.sh /storage/emulated/0/qpython/scripts3/omwllf.py && exit les/bin/qpython3-android5.sh /storage/emulated/0/qpython/scripts3/omwllf.py && exit < Traceback (most recent call last): File "/storage/emulated/0/qpython/scripts3/omwllf.py", line 564, in main(confFile, baseModDir, modFullPath) File "/storage/emulated/0/qpython/scripts3/omwllf.py", line 391, in main fp_mods = readCfg(cfg) File "/storage/emulated/0/qpython/scripts3/omwllf.py", line 347, in readCfg for l in f.readlines(): File "/data/user/0/org.qpython.qpy3/files/lib/python36.zip/codecs.py", line 321, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte 1|:/ $

calrissian-tendra commented 2 years ago

After some googling, the problem seems to be that the cfg file.is encoded in utf-8, while omwllf appears to be expect an ascii encoding. Now utf-8 is (essentially) interchangeable with ascii, so I'm not sure why I've got this problem.

calrissian-tendra commented 2 years ago

It works much better if you keep the cfg file in ASCII, which is easily done in DroidEdit.