News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

stray '\302' and '\250' in program compilation error?

Started by raylight, July 20, 2008, 01:41:26 PM

Previous topic - Next topic

raylight

why do i always have the error then i type printf("z"); ?
btw i am running in ubuntu.. in windows it works fine..
why am i getting this error?

raylight

example of my code is:

#include <stdio.h>

int main() {
   printf("zzzz");
   return 0;
}


why am i getting this error? how to get code blocks work in ubuntu?

thomas

Because you save your files in a wrong encoding. GCC uses UTF-8 as default on most (all?) platforms. It doesn't take a BOM.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."