utf 8 - How to initialize a const char* and/or const std::string in C++ with a sequence of UTF-8 character? -


how initialize const char* and/or const std::string in c++ sequence of utf-8 characters?

i'm using regular expression api accepts utf8 string const char*. initialization code should platform independent.

this should work compiler:

const char* twochars = "\xe6\x97\xa5\xd1\x88"; 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -