2025-07-10 9:07 PM - last edited on 2025-07-11 1:43 AM by Andrew Neil
When upgrading to versions 6.13 and 6.14, regenerating the project would force the file encoding to UTF-8, causing garbled Chinese comments. However, adding a line -Dfile.encoding=GBK in the STM32CubeMX.l4j.ini file under the installation folder could solve the problem. But after upgrading to version 6.15, this command seems to have become ineffective. Even if the system variable is added, the regenerated code will still be forced to UTF-8 encoding. Using UTF-8 is rather troublesome. Does anyone know how to change it to GBK encoding?
2025-07-11 1:07 AM
Hello @小大柱子 ,
First let me thank you for posting and welcome to the ST Community.
Your request is under investigation, and I will get back to you ASAP.
Thanks.
Mahmoud
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.