News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

a problem about encoding changed in source file

Started by zhl, September 14, 2011, 05:17:29 AM

Previous topic - Next topic

zhl

I use the C:B(svn 7385 in WinXPsp3) to build c program.When I type chinese characters in code or comments and build source file. C:B provide a message:The saved document contains characters which were illegal in the selected encoding.The file's encoding has been changed to UTF-8 to provent you from losing data.I do that  sucessfully in AVR Studio and building is correct.Is it unsupported to use chinese charaters in source file  in C:B.I only can use AVR Studio to edit and build my source file but its editor is really bad If CB doesn't support that.(I'm using the WINDOWS-936 encoding in C:B).

Can anyone give me an advice to solve this?

oBFusCATed

Don't use non ascii characters in the sources, simple as that.
You'll shave yourself many problems in the future if you migrate the project to other OSes.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]