<meta http-equiv="Content-Type" content="text/html; charset=gb2312">改charset吧

解决方案 »

  1.   

    应该根据window.navigator.browserLanguage来确定吧
      

  2.   

    switch (window.navigator.browserLanguage)
    {
    case 'zh-cn' : alert('中文');break;
    case 'ja' : alert('japanese');break;
    case 'en' : alert('english'); break;
    .......
    }
      

  3.   

    从服务器端判断用户是何种语言,加载相应的语言,并repsonse.write显示到页面上,
    alert时再其中取就可以了。
    代码摘要如下:
    //加载资源文件(所有文件必须位approot\resource\chg(eng)\)
    UIResource UIRes=null;////备第一次load时使用
    RunResource RunRes=null;
    if (!IsPostBack) 
    {  
    string ResourceRootPath=Application["RootPath"].ToString();
    //load UI Resource from resource file
    UIRes = new UIResource(ResourceRootPath,cResID, Session["UserLanguage"].ToString());
    //load Runtime Resource from resource file
    RunRes = new RunResource(ResourceRootPath,cResID, Session["UserLanguage"].ToString(), ViewState);
    }
    else
    {
    RunRes = new RunResource(ViewState);
    }
    //load runtime resource to IE Client page from view state
    RegisterClientScriptBlock("RES00", RunRes.GetScriptResource());
    ///加载资源文件结束 在客户IE中的情形是:
    <script language=javascript>
     var res= new Array(3)
        res[0]="Do you be sure to delete selected items?"   //1001
        res[1]="Delete data ok."   //1002
        res[2]="Save Data Error,please check your data."   //1003   
    </script>function Check_Input()
    {

    if (document.Form1.txtSubject.value=="")
    {
    alert(res[1]);
    return false;
    }

    }