how to output degree symbol in C programs with iso_8859-1?
I looked up the manual of iso_8859-1 and found the degree symbol: Oct Dec Hex Char Description 260 176 B0 ° DEGREE SIGN Code: int main( int argc, char *argv[]) { char chr = 176; //stores the extended ASCII of a symbol printf("Character with an ascii code of 251: %c \n", chr); return 0; } But it printed out as ? . How could I output a degree symbol in a C programme? Do I need to include some files? To use other characters than ASCII, on most platforms you have to switch to a "locale" that is able to handle such characters. At the beginning of your main you should have #include <locale.h> int