本帖最后由 leiiguanghui 于 2014-03-18 20:14:28 编辑

解决方案 »

  1.   

    将这个值  $("#bgi_technology").val() 
    HTMLEncode 编码后发送  接收时 HTMLDecode
      

  2.   

    现在我的做法是
    前台
    salesname: encodeURI($("#bgi_technology").val())后台
    string salesname = HttpUtility.UrlDecode(Request.Form["salesname"].Trim(), Encoding.GetEncoding("utf-8"));
    接收中文,日文时都正常,而接收韩文时出现乱码
      

  3.   

    url传值编码salesname=“+escape(salesname)+”;C#解码Server.UrlDecode(Request.QueryString["salesname"])
    试试
      

  4.   

    乱码是由于两边编码不一致导致的,发送和接收字符时都使用UTF-8就可以了。
      

  5.   

    contentType: "application/x-www-form-urlencoded; charset=utf-8",
    加个这个,应该就好了
      

  6.   

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    页面保存为UTF-8(无签名)提交编码为encodeURIComponent();
    服务器端解码问context.Server.UrlDecode();
      

  7.   

    在你的项目的web.config文件中有没有设置文件的编码?如果有的话在web.config中设置编码为utf-8试试,如果用jquery ajax 发送数据的话, jquery 内部默认就使用了encodeURIComponent编码要传递的参数