Cyrillics
Re: Cyrillics
Hello
If you use Windows, 'translate' the name:
char *translateUnicode(WCHAR *filename) {
int size;
char *translated;
size = WideCharToMultiByte(CP_UTF8, 0, filename, wcslen(filename), NULL, 0, NULL, NULL);
translated = (char*)HeapAlloc(GetProcessHeap(), 0, (size+1));
WideCharToMultiByte(CP_UTF8, 0, filename, wcslen(filename), translated, size, NULL, NULL);
translated[size]='\0';
return translated;
}
If you use Windows, 'translate' the name:
char *translateUnicode(WCHAR *filename) {
int size;
char *translated;
size = WideCharToMultiByte(CP_UTF8, 0, filename, wcslen(filename), NULL, 0, NULL, NULL);
translated = (char*)HeapAlloc(GetProcessHeap(), 0, (size+1));
WideCharToMultiByte(CP_UTF8, 0, filename, wcslen(filename), translated, size, NULL, NULL);
translated[size]='\0';
return translated;
}
Re: Cyrillics
Thanks, and it is possible to make it through a batch-file?
Re: Cyrillics
do you mean in a .bat ?
(it will not work in a .bat)
(it will not work in a .bat)
Re: Cyrillics
Yes in *.bat.
Here it is bad that it does not work through *.bat
How I understand, it works through UTF8?
Here it is bad that it does not work through *.bat
How I understand, it works through UTF8?