从窄或宽字符串解码为 UTF-8。
_ASYNCRTIMP std::string __cdecl to_utf8string(
const std::string &value
);
_ASYNCRTIMP std::string __cdecl to_utf8string(
const utf16string &value
);
参数
- value
要求
**标头:**asyncrt_utils.h
**命名空间:**utility::conversions
从窄或宽字符串解码为 UTF-8。
_ASYNCRTIMP std::string __cdecl to_utf8string(
const std::string &value
);
_ASYNCRTIMP std::string __cdecl to_utf8string(
const utf16string &value
);
**标头:**asyncrt_utils.h
**命名空间:**utility::conversions