Click here to Skip to main content
15,902,032 members

Comments by Marko Ilic (Top 4 by date)

Marko Ilic 11-Feb-16 15:08pm View    
I can't change that, it depends from user to user... But I tried making a UTF-8 file with notepad++ and still it did not work.
Marko Ilic 11-Feb-16 14:12pm View    
As I said in above example this doesn't work...
TCHAR filename[MAX_PATH] = _T("ilić/test.txt");
FILE *pfile = _wfopen(filename, _T("r"));
if(!pfile) printf("Error \n");
else printf("Finally working \n");

But when I write the path like this it works:
TCHAR filename[MAX_PATH] = _T("ili\u0107/test.txt"); // U+0107 = ć
Marko Ilic 11-Feb-16 11:52am View    
It is already set to Unicode (Use Unicode Character Set), if it wasn't _T and other functions would fail...
Marko Ilic 11-Feb-16 11:00am View    
How do you mean build it as Unicode? Not to be a console one?