int main()
{
char c = 0x41;
printf("char is : %c\n",c);
c = 0xe9;
printf("char is : %c\n",c);
unsigned int d = 0x164e;
printf("char is : %c\n",d);
return 0;
}
What I want to print out are:
I use Ubuntu 64-bit VMware Workstation on windows and use Octal dump:
The hexadecimal value of the three chars from an utf-16 LE txt file.
The output:
How to print out utf-16 characters correctly?