asp.net 编码 解码

     

编码代码:

System.Web.HttpUtility.HtmlEncode("何问起");

解码代码:

System.Web.HttpUtility.HtmlDecode("<a href="http://hovertree.com/">何问起</a> "); 

 

Server.UrlEncode("");
Server.UrlDecode("");
System.Web.HttpUtility.UrlEncode("");
System.Web.HttpUtility.UrlDecode("");
System.Uri.EscapeDataString("");
System.Uri.UnescapeDataString("");

 

转载于:https://www.cnblogs.com/xiaoshi657/p/7080809.html

你可能感兴趣的:(asp.net 编码 解码)