%=&/?' 加密解密
来源:互联网 发布:网配圈广播剧的软件 编辑:程序博客网 时间:2024/05/17 00:51
/// <summary>
/// 对字符串进行URL编码
/// </summary>
/// <param name="instr">待编码的字符串</param>
/// <returns>编码结果</returns>
private static string UrlEncode(string instr)
{
if (instr == null || instr.Trim() == "")
return "";
else
{
return instr.Replace("%", "%25").Replace("=", "%3d").Replace("&", "%26").
Replace("/"", "%22").Replace("?", "%3f").Replace("'", "%27").Replace(" ", "%20");
}
}
/// <summary>
/// 对字符串进行URL解码
/// </summary>
/// <param name="instr">待解码的字符串</param>
/// <returns>解码结果</returns>
private static string UrlDecode(string instr)
{
if (instr == null || instr.Trim() == "")
return "";
else
{
return instr.Replace("%3d", "=").Replace("%26", "&").Replace("%22", "/"").Replace("%3f", "?")
.Replace("%27", "'").Replace("%20", " ").Replace("%25", "%");
}
}
- %=&/?' 加密解密
- 加密&解密
- 简单加密与解密和 & | ^ 的应用
- 加密解密
- 加密解密
- 加密解密
- 加密解密
- 加密解密
- 加密解密
- 加密、解密
- 加密解密
- 加密解密
- 加密解密
- 加密解密
- 加密解密
- 加密解密
- 加密解密
- 加密解密
- ORACLE函数大全
- javascript中访问struts2 ValueStack中的数据
- 如何获取RowState为Deleted状态的数据
- Windows 7 关于锁定程序到任务栏及快捷方式小箭头的问题
- 短小精悍的英语短句
- %=&/?' 加密解密
- R12 APP-OFA-48392 Unable to Get The Concurrent Request Status Using Procedure FND_CONCURRENT.GET_REQUEST_STATUS
- 关于多边形的布尔运算
- 谷歌Chrome 操作系统
- J2EE 的十三种核心技术
- ASP用xmlhttp获得网页源代码
- cacti汉化版+rrdtool1.2+apache+php+mysql+lib
- Ghostscript 参数详解
- ECLIPSE 调试F8-------运行到下一断点处 F5-------STEP INTO F6-------STEP OVER