Skip to main content
Visitor II
July 11, 2025
Solved

STM32CubeMX v6.15 only supports UTF-8 encoding of generated files?

  • July 11, 2025
  • 2 replies
  • 595 views

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?image.png

Best answer by Mahmoud Ben Romdhane

Hello @小大柱子 ,

 

Thank you for bringing this issue to our attention.

The issue is raised to the dedicated team under this internal ticket (Ticket Number: 214028).

 

Thanks.

Mahmoud

 

 

2 replies

Technical Moderator
July 11, 2025

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.
Technical Moderator
July 15, 2025

Hello @小大柱子 ,

 

Thank you for bringing this issue to our attention.

The issue is raised to the dedicated team under this internal ticket (Ticket Number: 214028).

 

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.
Visitor II
August 7, 2025

你的问题解决了吗?