خرید بک لینک

Vote count: 0

In order to convert std::wstring to char* UTF8 I use following code:

std::wstring my_wide_string = L"my_sqlite_db.db";
std::wstring_convert<std::codecvt_utf8<wchar_t> > myconv;
myconv.to_bytes( my_wide_string.c_str() );

Now, I need to do a back conversion, i.e. char* UTF8 to std::wstring.

What is the proper way to switch the converter?

Thank you.

asked 59 secs ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 5 ارديبهشت 1395 ساعت: 23:01

صفحه بندی