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
Post a Comment