My company use some code like this:
std::string(CT2CA(some_CString)).c_str()
which I believe it converts a Unicode string (whose type is CS
Becareful : it's '|' and not '&' !
*buffer++ = 0xC0 | (c >> 6); *buffer++ = 0x80 | (c & 0x3F);