请问server.UrlEncode 方法 将 字符串 转换成什么 编码格式?
server.UrlDecode 方法又将 字符串 解码成什么 编码格式?
server.UrlDecode 方法又将 字符串 解码成什么 编码格式?
解决方案 »
- 在WPF中插入了一个ListView表格,在SQL中建了一个表,如何实现绑定?
- 在C#中写pock pc 2003时,怎样控制发出声音
- C# 水晶报表 交叉表数据显示问题
- 为何我以这种格式的CSV导入后没有图片也没有宝贝描述呢?
- 请问如何将.txt文件按照一定格式传入Excel?
- 请教一个activereport问题
- 急:winform如何实现二维表的界面和录入
- 想学C#,不知道C#用来做界面和VB比差多少?数据库操作呢?
- 序列化问题
- Winfrom+问下大家用水晶报表是做渲染界面, 还是做预览打印(我只会这个)呢
- axFramerControl1.ReplaceText 为什么替换不了
- repeater换行问题
server.UrlDecode:url解码参考
http://msmvps.com/blogs/paulomorgado/archive/2007/05/06/system-web-httputility-urlencode-and-encodings.aspxThe default encoding used by HttpUtility.UrlEncode (and HttpUtility.UrlDecode) is utf-8 and the requested site is expecting iso-8859-1.
但是我感觉系统应该可以设置。
http://stackoverflow.com/questions/4429277/httputility-urlencode-standard-encoding-vs-specified-encodingThe source code for the method HttpUtility.UrlEncode Method (String) from the Reflector:public static string UrlEncode(string str)
{
if (str == null)
{
return null;
}
return UrlEncode(str, Encoding.UTF8);
}不知道他用的哪个版本的net代码你可以自己用Reflector看看你使用的.net版本的类库。