cancel
Showing results for 
Search instead for 
Did you mean: 

Chinese characters?

LaoMa
Associate III

Hello I can enter Chinese characters into the C/C++ editor of STM32CubeIDE ?

And how to avoid that already written Chinese character will be interpreted in wrong way in new opened files?

i.e. in windows, you can set the non standard character set for display and applications....

Thanks a lot

Maurizio

2 REPLIES 2
mattias norlander
ST Employee

You have to comply to the ANSI-C standard.

http://www.crasseux.com/books/ctutorial/Function-names.html

You can put chinese characters in comments and in strings. Side-effect is that the build console does not seem to use the same encoding as the editor (UTF-8) so console output may look a bit weird. Did not find a setting to change the encoding of the console...

LaoMa
Associate III

Thanks,

I was struggling with a source code made by my Chinese colleagues, it's in ANSI C, but the comments are not readable in the STM32CubeIDE editor..... :(

I needed to translate them using VS2019 and a tool for translation..... "what a lousy job!" [Mel Brook's Junior Frankenstein😊 ].