User forums > Using Code::Blocks

a problem about encoding changed in source file

(1/1)

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.

Navigation

[0] Message Index

Go to full version