STM32CubeIDE Chinese garbled

Use STM32CubeIDE edit Chinese garbled situation, a total of two places are a problem

1. Copy elsewhere to STM32CubeIDE Chinese annotation content editor, after the code was generated automatically STM32CubeIDE, Chinese comments about individual garbled

 

2. Using the serial printf to print information in Chinese will be garbled, normal English.

Solution:

Right project name, click on the Properties button last,

 

 Select the text file encoding GBK

If there is no drop-down menu option GBK, GBK to direct keyboard input

Guess you like

Origin www.cnblogs.com/tianxxl/p/11978402.html