code_junkie

WinAPI and UTF-8 support

Nov 14th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. ::MessageBox(hWnd, CA2T(myUTF8Str, CP_UTF8), _T("Caption"), MB_OK);
  2.  
  3. CA2T myConvertedString(myUTF8Str, CP_UTF8);
  4. ...
  5. TRACE(_T("Converted: %sn"), myUTF8Str.m_psz);
  6.  
  7. CT2A myEncodedString("Some UTF8", CP_UTF8);
Add Comment
Please, Sign In to add comment