I can not print the euro symbol. The program I use is below.
I set the character set to code page 1250 , which has 0x80 for the euro symbol.
Program
=======
#include <stdio.h> #include <locale.h> int main() { printf("Current locale is: %s\n", setlocale (LC_ALL, ".1250")); printf("Euro character: %c\n", 0x80); getchar(); return 0; }
Output
======
Current Location: English_India.1250
Euro character :?
Other details
==============
OS: Windows Vista
Compiler: vC ++ 2008 express edition
source share