本帖最后由 u010479137 于 2013-11-24 03:16:22 编辑

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <script type="text/javascript">
    var a="\u54e5\u5f1f\u72482012\u51ac\u88c5\u65b0\u6b3e\u5973\u88c5 \u6b63\u54c1\u50472\u4ef6\u4fdd\u6696\u7fbd\u7ed2\u68c9\u670d\u9a6c\u5939 \u526a\u6807\u77ed\u5916\u5957";
    window.onload=function(){
    document.getElementById("test").innerHTML=a;
    }
    </script>
    </head><body>
    <div id="test"></div>
    </body>
    </html>
    不用做什么处理啊  直接就是中文了啊
      

  2.   

    如果这些是:"\u54e5\u5f1f\u72482012\u51ac\u88c5\u65b0\u6b3e\u5973\u88c5 \u6b63\u54c1\u50472\u4ef6\u4fdd\u6696\u7fbd\u7ed2\u68c9\u670d\u9a6c\u5939 \u526a\u6807\u77ed\u5916\u5957 UTF-8的UNIcode编码,那不用做什么转化,直接就可以显示汉字了。
      

  3.   

    decodeURI('\u54e5\u5f1f\u72482012\u51ac\u88c5\u65b0\u6b3e\u5973\u88c5 \u6b63\u54c1\u50472\u4ef6\u4fdd\u6696\u7fbd\u7ed2\u68c9\u670d\u9a6c\u5939 \u526a\u6807\u77ed\u5916\u5957')
    另外  php输出的时候  也有类似decodeURI 的方法 转一下就可以直接显示中文
      

  4.   

    不用转换。在字符串生成时就自动变成中文了
    alert("\u54e5\u5f1f\u72482012\u51ac\u88c5\u65b0\u6b3e\u5973\u88c5\u6b63\u54c1\u50472\u4ef6\u4fdd\u6696\u7fbd\u7ed2\u68c9\u670d\u9a6c\u5939 \u526a\u6807\u77ed\u5916\u5957");