Hi,
i have utf-8 files in utf-8 with arabic characters. I want to convert it to Unicode.
My code:
Why instead of arabic symbols i get '?' ?Code:char* data = //arabic text in UTF-8 CString value; int req = MultiByteToWideChar(CP_UTF8,0,data,-1,NULL,0); if(req > 0) { TCHAR* newData = NULL; newData = new TCHAR[req]; if(newData!=NULL) { MultiByteToWideChar(CP_UTF8,0,data,-1,newData,req); value = newData; delete[] newData; return 1; } else return -1; } else { DWORD err = GetLastError(); return -1; }![]()




Reply With Quote