mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-21 07:44:41 +08:00
Improve url encode and decode code add user pass encode decode methond (#3468)
去除url转义的冗余代码,添加用户名与密码的转义
This commit is contained in:
@@ -22,6 +22,8 @@ public:
|
||||
static std::string UrlEncodeComponent(const std::string &str); // url参数 utf8编码
|
||||
static std::string UrlDecodePath(const std::string &str); //url路径 utf8解码
|
||||
static std::string UrlDecodeComponent(const std::string &str); // url参数 utf8解码
|
||||
static std::string UrlEncodeUserOrPass(const std::string &str); // url中用户名与密码编码
|
||||
static std::string UrlDecodeUserOrPass(const std::string &str); // url中用户名与密码解码
|
||||
#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