How to use utf8 character arrays in c++?

后端 未结 5 1851
萌比男神i
萌比男神i 2020-12-17 16:01

Is it possible to have char *s to work with utf8 encoding in C++ (VC2010)?

For example if my source file is saved in utf8 and I write something like thi

5条回答
  •  天涯浪人
    2020-12-17 16:46

    See this MSDN article which talks about converting between string types (that should give you examples on how to use them). The strings types that are covered include char *, wchar_t*, _bstr_t, CComBSTR, CString, basic_string, and System.String:

    How to: Convert Between Various String Types

提交回复
热议问题