我的select 语句是这样的:select distinct wb.WIPDATE "開工日期",wp.propertyvalue "封裝批號",op.PROPERTYVALUE "客戶批號(正印)"...查询出来的字段名都是繁体字,直接把这样的DataTable结果集绑定到DataGrid,在我本地的繁体系统中测试没有问题,
发布到服务器上就出现表头乱码(服务器也是繁体系统),不知道是什么原因?
请高手指点!!!web.config中我配置过了<globalization requestEncoding="utf-8" responseEncoding="utf-8" />

解决方案 »

  1.   

    用UTF-7會有以下錯誤:Server Error in '/WebReport2' Application.
    --------------------------------------------------------------------------------Invalid character in a Base-64 string. 
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.FormatException: Invalid character in a Base-64 string.Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  Stack Trace: 
    [FormatException: Invalid character in a Base-64 string.]
       System.Convert.FromBase64String(String s) +0
       System.Web.UI.LosFormatter.Deserialize(String input) +25
       System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +101[HttpException (0x80004005): Invalid_Viewstate
    Client IP: 127.0.0.1
    Port: 1162
    User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322)
    ViewState: dDwtOTA1ODA5NjM1O3Q8O2w8aTwxPjs+O2w8dDw7bDxpPDc+Oz47bDx0PHA8cDxsPFZpc2libGU7PjtsPG88Zj47Pj47Pjs7Pjs+Pjs+Pjs+MIaKTsMh1IvM0TVcZ0OiHea+Bfc=
    Http-Referer: http://localhost/WebReport2/Pages/Login.aspx
    Path: /WebReport2/Pages/Login.aspx.]
       System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +447
       System.Web.UI.Page.LoadPageViewState() +18
       System.Web.UI.Page.ProcessRequestMain() +447 
    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.2407; ASP.NET Version:1.1.4322.2407 
      

  2.   

    兄弟们,我都的问题比较特殊,是Oracle安装时字符集识别的问题:由于安装了正版的Windows2003之后,安装了繁体语言包,没有切换语言和地区,造成安装Oracle9i时,
    认错了字符集,导致查询出来的中文全部出现乱码的情况。我的解决办法是重装了Oracle客户端。请教高手,不安装客户端,切换字符集的语法是?!?