For me this writes "???" to test.txtCode:#include <stdio.h> #include <wchar.h> int main() { FILE *f=fopen("test.txt","w"); fwprintf(f,L"едц"); fclose(f); return 0; }
What's the proper way of writing "едц"?
For me this writes "???" to test.txtCode:#include <stdio.h> #include <wchar.h> int main() { FILE *f=fopen("test.txt","w"); fwprintf(f,L"едц"); fclose(f); return 0; }
What's the proper way of writing "едц"?
i think to be able to include those characters in the source file, you have to use the proper encoding when you save the file, and give an option to whatever compiler your using (if it has any) to tell it your source file is unicode.
if these two dont work, i would just try and write the unicode value of the character (ie hex or decimal representation of it).