Bug #103332 Can't open configuration file due to UnicodeDecodeError
Submitted: 15 Apr 12:55 Modified: 19 Apr 13:21
Reporter: Henning Schmidt Email Updates:
Status: Need Feedback Impact on me:
Category:MySQL Workbench Severity:S2 (Serious)
Version:8.0 OS:Microsoft Windows
Assigned to: MySQL Verification Team CPU Architecture:x86
Tags: my.ini, unicodeDecodeError

[15 Apr 12:55] Henning Schmidt
I installed mysql 8.0 on a fresh Win Server 2019. After installation I'm not able to open the Servers Option File (my.ini).

Error: Error opening configuration file. UnicodeDecodeError: 'charmap' codec can't be decoded byte 0x9d in position 4292: character maps to <undefined>. 

I have never touched the my.ini in any way.

How to repeat:
German Windows Server 2019. Fresh Install.
[15 Apr 13:03] Henning Schmidt
Added information: I opened the configuration file with the workbench (Version 8.0 CE)
[15 Apr 13:52] MySQL Verification Team
Check last comment from https://bugs.mysql.com/bug.php?id=95293. Thanks.
[15 Apr 18:19] Henning Schmidt
That fixed my problem that I could not restart the service after editing the my.ini with the build-in Windows Editor (I saved the file as UNICODE, nevertheless it wasn't working after restarting, now used notepad++ and it's working fine). But I still can't access the option page in the workbench. 
Deinstalled the server, deleted all files, reinstalled mysql 8.0 -> Same error.
[19 Apr 13:21] MySQL Verification Team
Hello Henning Schmidt,

Thank you for the bug report and feedback.
This might be fixed in WB 8.0.24, hence wait until 8.0.24 is out and try again. Thanks.

Ashwini Patil
[13 May 16:41] Lee Matthews
I have the same issue with MySQL Workbench 8.0.25.
UnicodeDecodeError: 'charmap' codec can't decode byte0x9d in position 4312: character maps to <undefined>