|I wish it were as simple as that. Try this:
LPCWSTR str = L"कमल";
BOOL b = false;
b = IsTextUnicode(str, _tcslen(str), NULL);
AfxMessageBox(L"Text is Unicode!");
I've worked extensively with Asian languages and I've never had this API to work
reiably. I know the documentation kinda confesses it, but there has been no development on this at all!
Richard MacCutchan wrote:char ascii = "The rain in Spain";
Richard MacCutchan wrote:if (IsTextUnicode(ascii, sizeof ascii, NULL))
Also, your example is flawed because you're wrongly passing the size of the pointer instead of passing the size of the buffer itself in bytes.
Current arm size: 14.4in
Desired arm size: 18in
Next Target: 15.4in by Dec 2010
Current training method: HIT