我们的产品都支持多国语言,
unicode,不知你是要实现啥

解决方案 »

  1.   

    保存在Sqlserver数据库重的数据是Unicode格式
    如:
    中国台北
    实际是汉字:中国台北
    如何在读到页面是用脚本操作显示"中国台北"
      

  2.   

    中国台北
    直接放在页面里就行了document.write("中国台北");
      

  3.   

    document.write("中国台北");
    这样写诗没问题的
    但是我象把这个值通过javascript脚本写到<select><option></option></select>中
    这样显示的还是乱码
      

  4.   

    我用的是写进去的,看出来还是乱麻
    原理,选择一个表单,另一个表单变化var get_templat=form1.et_list //temp_list
    var get_select=form1.select_list //select list
    var array_country=new Array()
    array_country[0]=new Array()
    array_country[0][0]=new Option('','Select Template')
    array_country[0][1]=new Option('8','&#31179;&#27700;&#20849;&#38271;&#22825;&#19968;&#33394;')
    array_country[0][2]=new Option('9','222')
    array_country[0][3]=new Option('15','summer&nbsp;test')
    array_country[1]=new Array()
    array_country[1][0]=new Option('','Select Template')
    array_country[1][1]=new Option('1','summerok')
    array_country[1][2]=new Option('13','canndy')
    array_country[2]=new Array()
    array_country[2][0]=new Option('','Select Template')
    array_country[2][1]=new Option('11','123')
    array_country[3]=new Array()
    array_country[3][0]=new Option('','Select Template')
    array_country[3][1]=new Option('10','sedf')
    array_country[4]=new Array()
    array_country[4][0]=new Option('','Select Template')
    array_country[4][1]=new Option('12','&#21271;&#20140;&#33775;&#32239;')
    array_country[6]=new Array()
    array_country[6][0]=new Option('','Select Template')
    array_country[6][1]=new Option('14','&#33521;&#26684;&#20848;')
    array_country[7]=new Array()
    array_country[7][0]=new Option('','Select Template')

    //Change template with Country
    function change_templat(myselect)
    {
    get_value=myselect.value
    if(get_value!="")
    {
    get_templat.length=0
    for(i=0;i<array_country[get_value].length;i++)
    {
    get_templat.options[i]=new Option(array_country[get_value][i].value,array_country[get_value][i].text)
    }

    }
    }
      

  5.   

    其实很简单,绕个弯就可以了:<div id="oTmp" style="display:none"></div>document.all.oTmp.innerHTML = "&#20013;&#22269;&#21488;&#21271;";
    var sTmp = document.all.oTmp.outerText;
    window.alert(sTmp);