本帖最后由 storylok 于 2012-02-25 18:53:13 编辑

解决方案 »

  1.   

    也就是说 数据库是 utf8的 在dos窗口不能显示中文。  在网页里不管是gbk还是utft都不限制中文 完全乱码。
      

  2.   

    在数据库里面乱码么?  取数据你是怎么取的。。查询前加上:mysql_query("set names utf8"); 试试。
      

  3.   

    试试这个~~我一直用这个~
    开发语言C# WINFORMS
    public string MySqlIn(string data)
            {
                try
                {//gb2312
                    return System.Text.Encoding.GetEncoding("iso8859-1").GetString(System.Text.Encoding.GetEncoding("gb2312").GetBytes(data));
                }
                catch (Exception e)
                {
                    return null;
                }
            }
      

  4.   

    在你的网页中同样先执行一下"set names gbk"