摘要:1 inline void WStrToUTF8(std::string& dest, const wstring& src){ 2 3 dest.clear(); 4 5 for (size_t i = 0; i > 6)& 0x1f));16 17 dest.push_back(0x80| (w & 0x3f));18 19 }20 21 else if (w > 12)& 0x0f));24 25 dest.push_back(0x80| ((w >> 6) & 0x3f));26 27 dest.push_back
阅读全文