Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeDecodeError #7

Open
Kettu94 opened this issue Sep 3, 2020 · 1 comment
Open

UnicodeDecodeError #7

Kettu94 opened this issue Sep 3, 2020 · 1 comment

Comments

@Kettu94
Copy link

Kettu94 commented Sep 3, 2020

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants