I am trying to create a new file with name "履歴書.txt" using C language's fopen(). I am using Windows 10 English version.
File gets created but file name is always garbled.
How can I create file with exact name "履歴書.txt" in C language?Code:setlocale(LC_ALL, "ja_JP.utf8"); FILE *outputfile; outputfile = fopen("C:/sources/履歴書.txt", "w, ccs=UTF-8"); if (outputfile == NULL) { printf("cannot open\n"); exit(1); } fprintf(outputfile, "this is test.\n"); fclose(outputfile);