2010年8月5日
摘要: 起因:AJAX异步通信到*.ashx一般处理程序时,传递中文将出现乱码。解决方案一:在aspx页面中的JS代码中进行编码:var fileName = "测试test";fileName = escape(fileName); //传值编码,中文时有用 在一般程序程序页面(*.ashx) 解码:context.Response.ContentType = "text/plain";//context.Response.Charset = "utf-8";string name = HttpContext.Current.Server. 阅读全文
posted @ 2010-08-05 09:28 Renn.Erann 阅读(862) 评论(0) 推荐(0) 编辑