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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -