#ifndef __HGSTRING_H__ #define __HGSTRING_H__ #include // 标准字符串:windows下为ansi编码,linux下为utf8编码 // UTF8转标准字符串 std::string Utf8ToStdString(const std::string& utf8Str); // 标准字符串转UTF8 std::string StdStringToUtf8(const std::string& stdStr); #endif /* __HGSTRING_H__ */