Q: I encountered a problem when I tried to save changes to my source file basic_demo.c. The error message that appears is:
Save could not be completed.
Reason:
Some characters cannot be mapped using "GBK" character encoding.
Either change the encoding or remove the characters which are not supported by the "GBK" character encoding.
The same problem happened when I tried to save both files msc815x_config.c and os_config.h. I re-installed the IDE but it still failed. I changed the workspace but it still failed. I looked up in the help system and it said that GBK encoding can be changed by selecting Edit > Set Encoding… Even though I changed these three files, the menu is still not available. Other files, for example, *.lcf in this project, can be changed and saved. If I do not include the SmartDSP OS, changes to the MSC8156_main.c can be saved successfully.
A: In order to be able to save these files follow steps below:
1. From C/C++ perspective toolbar, select Preferences. The Preferences window appears.
2. Expand General Folder.
3. Expand Workspace Folder.
4. On the right hand side under Text file encoding, select Other radio button.
5. In the Other textbox, insert GB18030.
6. Select Apply.
7. Select OK.