比如数据库数据为:会计学
网页中显示为:会计学
但是如果修改时,TextBox中显示:会计学能不能TextBox中还是显示中文"会计学"呢?

解决方案 »

  1.   

    string str = "会计学";
    string[] arr = str.Split(';');
    string tmp = "";
    foreach(string s in arr)
    {
        if(s.Length==7) tmp += (char)int.Parse(s.Substring(2,5));
    }
    textBox1.Text = tmp;
      

  2.   

    楼上搞什么呀?!哈string s = HttpUtility.HtmlDecode("会计学");一句搞定!
      

  3.   

    说白了,20250 35745 23398其实就是Unicode编码
      

  4.   

    viena(维也纳nn) 不要火药味这么浓嘛!应该是 MS 很了不起,哈!就是解码嘛,有现成的高效方法为什么不直接调用,何必绕弯子呢?!