That's probably because your file uses a different character encoding than the default encoding of your system (for example it uses special characters in a ISO 8859-1 encoding and your system uses UTF8). You can change the encoding of the file somewhere in the codeblocks menu (I cant look it up at the moment on this computer) and you can also change the default encoding in the preferences. An automatic detection is still missing in C::B.