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

Apply Button doesn't work (DECODE ERROR) (SOLUTION) #71

Closed
rarikuma opened this issue Jan 25, 2024 · 4 comments
Closed

Apply Button doesn't work (DECODE ERROR) (SOLUTION) #71

rarikuma opened this issue Jan 25, 2024 · 4 comments

Comments

@rarikuma
Copy link

When I press the APPLY button, no mod file is generated and nothing happens.
The version of TOTK Optimizer is 1.5.5.
Terminal displays the following error message.

Exception in Tkinter callback
Traceback (most recent call last):
File "tkinter_init_.py", line 1948, in call
File "form.py", line 351, in
File "form.py", line 1032, in submit
File "configparser.py", line 713, in read
File "configparser.py", line 1036, in _read
UnicodeDecodeError: 'cp932' codec can't decode byte 0x97 in position 3311: illegal multibyte sequence
Game Bar Captures 2024_01_25 20_22_21

@MaxLastBreath
Copy link
Owner

Please use this, ive been trying to fix these errors for a while, its from windows without native utf-8 encoding.
The link below has a fix that fixes my application and every other application with utf-8 dependencies.
https://exploratory.io/note/exploratory/Enabling-UTF-8-on-Windows-hYc3yWL0

@rarikuma
Copy link
Author

Thanks for the reply.
I have enabled "Beta: Use Unicode UTF-8 for worldwide language support" in the Windows settings and now TOTK Optimizer is able to generate mod files.

@MaxLastBreath
Copy link
Owner

Im glad its all working now, gonna keep this incase others needs a solution as well :)

@MaxLastBreath MaxLastBreath changed the title When I press the APPLY button, no mod file is generated and nothing happens. Apply Button doesn't work (DECODE ERROR) (SOLUTION) Jan 28, 2024
@rarikuma
Copy link
Author

However, I have heard of cases where enabling this setting on Windows causes problems with other applications.
As a temporary solution, I enable the "Beta: Use Unicode UTF-8 for worldwide language support" setting only when using TOTK Optimizer to generate mod files,
It would be most desirable if the TOTK Optimizer could fix the problem so that this setting is not needed, and I hope it will happen.

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