Skip to main content
Associate II
June 4, 2024
Question

chinese comments in utf-8 partly are changed when cubeMX regenerates the code

  • June 4, 2024
  • 1 reply
  • 1371 views

there is a strange phenomenon. I write some chinese comments in main.c and other files. when I use cubeMX to regenerate the code. the comments in main.c are partly changed and can't be display correctly. but the comments in the file that don't be regenerated by cubeMX are correct and don't be changed.

xixi_0-1717470642028.png

then I regenreate the codes by stm32cubeMX.

xixi_1-1717470703815.png

the mistake happend. I use the defualt configuration. but when I set encoding with GBK. the problem disappears. 

1 reply

KDJEM.1
Technical Moderator
June 20, 2024

Hello @xixi ,

Thank you for bringing this issue to our attention.

I confirm the issue with STM32CubeMX 6.11.1 and I reported internally.

Internal ticket number: 184619 (This is an internal tracking number and is not accessible or usable by customers).

Thank you.

Kaouthar

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.