how to create a String object from UTF8 data and get UTF8 char* from String Object RRS feed

  • Question

  • Hi,

    i have a UTF8 string char *utf8bytes;

    i need a String object from this - 

    i could construct one using by using MultiByteToWideChar function to get wchar* and then construct a String from that

    but is there an easy way to do it ? C# has  "Encoding" namespace which provides some easy utility functions is that available for C++ ?

    i have to mention, the Metro Platform String class is very limited - the NSString in iOS is more powerful and i expected the same on Metro apps as well . 

    Sad that developer needs to spend so much time on working with strings itself !! very bad


    Tuesday, August 14, 2012 12:50 PM


All replies