Czytanie pliku unicode w c
Chcę tylko odczytać odczytany plik tekstowy Unicode w normalnym trybie c. Poniższy kod nie działa tak samo,
#include<stdio.h>
int main()
{
FILE *ptr_file;
char buf[1000];
ptr_file =fopen("input.txt","r");
if (!ptr_file)
return 1;
while (fgets(buf,1000, ptr_file)!=NULL)
printf("%s",buf);
fclose(ptr_file);
return 0;
}