当前网页编码为
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
1、在JS中使用encodeURIComponent方法对字符串进行编码。
2、在C#中使用System.Web.HttpUtility.UrlDecode()进行解码。
当前网页编码为
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
1、在JS中使用encodeURIComponent方法对字符串进行编码。
2、在C#中使用System.Web.HttpUtility.UrlDecode()进行解码。