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;
}
Run Code Online (Sandbox Code Playgroud)
我要打印的内容是:
我在 Windows 上使用 Ubuntu 64 位 VMware Workstation 并使用八进制转储:
utf-16 LE txt 文件中三个字符的十六进制值。
输出:
如何正确打印出utf-16字符?