如何在c中打印utf-16字符

Pat*_*ick 6 c unicode utf-16

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字符?