User forums > Using Code::Blocks
stray '\302' and '\250' in program compilation error?
(1/1)
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.
Navigation
[0] Message Index
Go to full version