#include locale #include codecvt #include cassert #include string #include vector /* *注意這裏必須用std::codecvt_utf8char32_t和std::wstring_convertstd::codecvt_utf8char32_t, char32_t, *含義是將utf8編碼的字節字符串 轉化為