A windows project can use the [b]MultiByteToWideChar[/b]
Example:
[code]
void Function(void)
{
char dataBuff[] = "abcdefghijklmnopq";
DWORD Pos = 10;
CString tmpStr = "";
wchar_t* pwsz = tmpStr.GetBufferSetLength ((Pos+1)*sizeof(wchar_t));
MultiByteToWideChar(CP_ACP
tmpStr.ReleaseBuffer();
}
[/code]
Main Topics
Browse All Topics





by: AxterPosted on 2004-01-10 at 00:21:18ID: 10086062
Your question does not match the title of your question.
Do you want to convert ASCII to UTF8?
Or do you want to convert UNICODE to UTF8?