mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-21 07:44:41 +08:00
@@ -18,8 +18,12 @@ namespace mediakit {
|
||||
|
||||
class strCoding {
|
||||
public:
|
||||
static std::string UrlEncode(const std::string &str); //urlutf8 编码
|
||||
static std::string UrlDecode(const std::string &str); //urlutf8解码
|
||||
[[deprecated]] static std::string UrlEncode(const std::string &str); //url utf8编码, deprecated
|
||||
static std::string UrlEncodePath(const std::string &str); //url路径 utf8编码
|
||||
static std::string UrlEncodeComponent(const std::string &str); // url参数 utf8编码
|
||||
[[deprecated]] static std::string UrlDecode(const std::string &str); //url utf8解码, deprecated
|
||||
static std::string UrlDecodePath(const std::string &str); //url路径 utf8解码
|
||||
static std::string UrlDecodeComponent(const std::string &str); // url参数 utf8解码
|
||||
#if defined(_WIN32)
|
||||
static std::string UTF8ToGB2312(const std::string &str);//utf_8转为gb2312
|
||||
static std::string GB2312ToUTF8(const std::string &str); //gb2312 转utf_8
|
||||
|
||||
Reference in New Issue
Block a user