zoukankan      html  css  js  c++  java
  • JS alert出来中文显示unicode 写入表格后正常

    JS alert出的消息:
    Array [ "3133310008_1", "3133310008_2", "3133310008_3", "3133310008_4", "3133310008_5", "3133310008_6", "ERRMSG" ]  readmq.js:80:4
    Array [ Array[1], Array[1], Array[1], Array[1], Array[1], Array[1], Array[1], Array[1], Array[1], Array[1], 等 6 项… ]  readmq.js:46:4
    [0, "3133310008_1 u5f53u524du961fu5217u6df1u5ea6u4e3a==0
    MsgSeqNumber====1
    u7b2cu4e00u6761u6d88u606fu5185u5bb9=="]
    
    
    后台打印:
    
    [15/Jan/2018 01:15:31] "GET /favicon.ico HTTP/1.1" 404 7240
    /api/readmqmessage/?env=3133310008_1&app=%E7%94%B5%E7%A5%A8%E7%B3%BB%E7%BB%9F&qmgr=QMEMBFE&queue=3133310008_1
    3133310008_1
    -----------------------------------
    <type 'tuple'>
    (0, '3133310008_1 xe5xbdx93xe5x89x8dxe9x98x9fxe5x88x97xe6xb7xb1xe5xbaxa6xe4xb8xba==0
    MsgSeqNumber====1
    xe7xacxacxe4xb8x80xe6x9dxa1xe6xb6x88xe6x81xafxe5x86x85xe5xaexb9==')
    -----------------------------------
    [15/Jan/2018 01:15:37] "GET /api/readmqmessage/?env=3133310008_1&app=%E7%94%B5%E7%A5%A8%E7%B3%BB%E7%BB%9F&qmgr=QMEMBFE&queue=3133310008_1 HTTP/1.1" 200 130
    
    
    read_mq_message[0, "ERRMSG u5f53u524du961fu5217u6df1u5ea6u4e3a==2
    MsgSeqNumber====1
    u7b2cu4e00u6761u6d88u606fu5185u5bb9=={H:013133310008  CD        3310        CD        3133310008  9968        20171231215548078                 30201718                                3N03694958cf50bc5fc49160fd778f95e2934d1c59        }
    <?xml version="1.0" encoding="UTF-8"?>
    <Document><CommercialDraftMonthlyDetailsRequest><MsgId><Id>0031333100082018010130201718</Id><CreDtTm>2017-12-31T21:55:21</CreDtTm></MsgId><SummryDt><Dt>2018-01-01</Dt></SummryDt><Ptcpt><Acct><AcctSvcr>313305540010</AcctSvcr></Acct><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171120128852518</IdNb><IsseAmt Ccy="CNY">500000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131330554001020171102124407188</IdNb><IsseAmt Ccy="CNY">100000.00</IsseAmt></ForComrclDrft></Ptcpt><Ptcpt><Acct><AcctSvcr>313290036045</AcctSvcr></Acct><ForComrclDrft><IdNb>131329003604520171129133007517</IdNb><IsseAmt Ccy="CNY">40000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094074284</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171025121110231</IdNb><IsseAmt Ccy="CNY">108354.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171016117938766</IdNb><IsseAmt Ccy="CNY">140049.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094067880</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129133007517</IdNb><IsseAmt Ccy="CNY">40000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129132861697</IdNb><IsseAmt Ccy="CNY">30000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171025121110231</IdNb><IsseAmt Ccy="CNY">108354.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094074284</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094067880</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171016117938766</IdNb><IsseAmt Ccy="CNY">140049.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094074284</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129132861697</IdNb><IsseAmt Ccy="CNY">30000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129133007517</IdNb><IsseAmt Ccy="CNY">40000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129132861697</IdNb><IsseAmt Ccy="CNY">30000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094067880</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171016117938766</IdNb><IsseAmt Ccy="CNY">140049.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171025121110231</IdNb><IsseAmt Ccy="CNY">108354.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171016117938766</IdNb><IsseAmt Ccy="CNY">140049.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171025121110231</IdNb><IsseAmt Ccy="CNY">108354.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094074284</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129133007517</IdNb><IsseAmt Ccy="CNY">40000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094067880</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129132861697</IdNb><IsseAmt Ccy="CNY">30000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129133007517</IdNb><IsseAmt Ccy="CNY">40000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129133007517</IdNb><IsseAmt Ccy="CNY">40000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129132861697</IdNb><IsseAmt Ccy="CNY">30000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171025121110231</IdNb><IsseAmt Ccy="CNY">108354.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094074284</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171025121110231</IdNb><IsseAmt Ccy="CNY">108354.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094074284</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094067880</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171016117938766</IdNb><IsseAmt Ccy="CNY">140049.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171016117938766</IdNb><IsseAmt Ccy="CNY">140049.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129132861697</IdNb><IsseAmt Ccy="CNY">30000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171129133007517</IdNb><IsseAmt Ccy="CNY">40000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171016117938766</IdNb><IsseAmt Ccy="CNY">140049.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094067880</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520170707094074284</IdNb><IsseAmt Ccy="CNY">50000.00</IsseAmt></ForComrclDrft><ForComrclDrft><IdNb>131329003604520171025121110231</IdNb><IsseAmt Ccy="CNY">108354.00</IsseAmt></ForComrclDrft><Fo
    
    
    此时unicode中文显示不正常
    
    
    写入到表格后就正常:
    
    var successfn = function(jdata){
                          console.log(jdata);
                        var jdata = eval(jdata);
                  $(".gridtable").empty();
                  var _HTML="<tr><th>消息</th></tr>";
                    _HTML=_HTML+"<tr><td>"+jdata+"</td></tr>";
                $(".gridtable").html(_HTML);
                    };
    
    显示就正常了
    
    0,ERRMSG 当前队列深度为==2 MsgSeqNumber====1 第一条消息内容=={

  • 相关阅读:
    Linux实现ftp账号同时访问两个目录方法
    ubuntu系统中的VMware 安装win7 Ghost镜像的几个坑
    ubuntu14.04LTS安装vmware10.0.1
    翻页特效
    使用Fragment应用放置后台很久,被系统回收,出现crash
    Android软件安全开发实践(下)
    移动应用安全开发指南(Android)--完结篇(http://www.bubuko.com/infodetail-577312.html)
    数字签名与数字加密
    time_wait 原理分析和优化
    Go中http超时问题的排查
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13349338.html
Copyright © 2011-2022 走看看