Skip to main content
LaoMa
Associate III
June 22, 2021
Question

Chinese characters?

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

This topic has been closed for replies.

2 replies

mattias norlander
ST Technical Moderator
June 28, 2021

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...

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question.
LaoMa
LaoMaAuthor
Associate III
June 29, 2021

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:smiling_face_with_smiling_eyes: ].