jmelesky / omwllf

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

UnicodeDecodeError #7

Open Kettu94 opened 4 years ago

Kettu94 commented 4 years ago

Hello. After few attempts of launching omwllf.py i get this responce every time:

C:\Windows\system32>C:\Users\Alexru94\AppData\Local\Programs\Python\Python38-32\python.exe C:\Users\Alexru94\Desktop\omwllf-master\omwllf.py Traceback (most recent call last): File "C:\Users\Alexru94\Desktop\omwllf-master\omwllf.py", line 564, in main(confFile, baseModDir, modFullPath) File "C:\Users\Alexru94\Desktop\omwllf-master\omwllf.py", line 391, in main fp_mods = readCfg(cfg) File "C:\Users\Alexru94\Desktop\omwllf-master\omwllf.py", line 347, in readCfg for l in f.readlines(): File "C:\Users\Alexru94\AppData\Local\Programs\Python\Python38-32\lib\encodings\cp1251.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 5177: character maps to

Im on windows 10 with russian language, if thats important.

jdototso commented 3 years ago

It appears to be an issue related to the encoding of the openmw.cfg. Had the same issue because, for some reason, my cfg was in utf-8 encoding. Converting it to ansi/ascii solved the issue.