unicode - In C++ when to use WCHAR and when to use CHAR -
i have question:
some libraries use wchar text parameter , others use char (as utf-8): need know when use wchar or char when write own library.
use char , treat utf-8. there great many reasons this; website summarises better can:
it recommends converting wchar_t char (utf-16 utf-8) receive library, , converting when need pass strings it. answer question, use char except @ point api requires pass or receive wchar_t.
Comments
Post a Comment