Code::Blocks

User forums => Using Code::Blocks => Topic started by: zhl on September 14, 2011, 05:17:29 am

Title: a problem about encoding changed in source file
Post by: zhl on September 14, 2011, 05:17:29 am
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?
Title: Re: a problem about encoding changed in source file
Post by: oBFusCATed on September 14, 2011, 08:34:48 am
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.