step1:打开Keil5软件 Edit->Configuration..step2:Editor子目录下,Encoding:复选框中选择“Chinese GB2312(Simplified)”step3:点击OK,问题解决。