code_production/db/HGPdtToolDb/HGString.h

14 lines
333 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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