cancel
Showing results for 
Search instead for 
Did you mean: 

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

xixi
Associate II

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 1
KDJEM.1
ST Employee

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.