摘要:
一.使用ajax与服务器交互 不管是post方式还是get方式都应该对中文进行编码 只有这样 服务器端(ie浏览器 firefox不用)才能正确解析汉字 否则就是乱码。二.在asp.net MVC中 ie跟firefox对下载文件名的处理不同 / ie通过编码实现正确的文件名/ public FileContentResult DownLoad() { string temp = "我是中国人!"; return File(System.Text.Encoding.UTF8.GetBytes(temp), "text/plain",Url.Encode( 阅读全文
posted @ 2011-03-15 18:41
fumen
阅读(2243)
评论(0)
推荐(0)