小编JER*_*ERY的帖子

如何将马拉雅拉姆语作为c/c ++程序输出打印?

我正在尝试将Malayalam(南印度语)打印为c/c ++程序输出,但它在终端和用户界面中使用WINAPI显示了一些不熟悉的字符.

(文件"malayalam.txt"包含一些马拉雅拉姆语单词.)

#include <stdio.h>
#include <windows.h>

main() {
    char s[100];
    FILE *fp;
    fp = fopen("malayalam.txt", "r");   
    if (fp == NULL) {
        puts("Cannot open file");
    }
    while (fgets(s, 100, fp) != NULL) {
        printf("%s", s);
        MessageBox(NULL, s, "Malayalam", MB_OK);
    }
    fclose(fp);
}
Run Code Online (Sandbox Code Playgroud)

c unicode winapi encoding

5
推荐指数
1
解决办法
420
查看次数

标签 统计

c ×1

encoding ×1

unicode ×1

winapi ×1