Author Topic: a problem about encoding changed in source file  (Read 6851 times)

Offline zhl

  • Multiple posting newcomer
  • *
  • Posts: 21
a problem about encoding changed in source file
« 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?
« Last Edit: September 14, 2011, 05:21:02 am by zage »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13005
    • Travis build status
Re: a problem about encoding changed in source file
« Reply #1 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.
(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!]