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:

http://utf8everywhere.org/

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

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -