How get encoded string original length wich contains \\ character in javascript, jquery?
<p>I have some problems with JavaScript. I get from the database, encoded strings and put its javascript array. string contains \\ and when I alert string length is greater than it has. how can i get original string?
this is my string </p>

<pre><code>var a = "eir~FdezuOha@ha_@rPzjQbnChxI~_Gf}\\|aAfnu@exNjmm@ilDvi]~Ttnz@tmLlyg@vi@nj`@`vIlrZznB`d^dd@zsVbvFdia@~bK~yT~uQxsPpmA|wL_bD|cCwiEfaEil@d`s@keEzri@u`Erw~Am|Dp{x@qJjbfBx}AdyrDkPtme@tgClei@feAziLrwFhJl}Ax`LvwHz||@nmHtrp@hGnnc@_D~j}@a@hskA_GjfuAlj]t_`@`sTheWjs@h{\\|AbxOj}LnxK`fN|gXtyH~cBrvElnKhaPxk`@jxB~v\\tqK~lLuUvkh@kBz~|As@tyfCfCbck@dbJhfh@h_QprrAcaC|czAunHbsr@qkMpm`@osk@|opB}nPvjvAthDp_kBhQdvt@zyK`pdAjlIx|OdiJln_@ngKzzu@l`YtdeAlqQrjZfzc@|y\\v{`@zks@h_@xcWf_CjoaArzNrbkAbfNb~c@nsVzeYjlTno]|hJxzU|~AflJvyDncJpnJdkKabBn`ToeE|pYcr@thRqpAh{NraHvkKnfCv}Js`@pmRx}EroV`dItwQnpQlcM~jAzrGikJdaHujMjxJs`@bxQzsEjlKmyCnrJc|FzrXu`FzhJ`eE`|LvfD`}`@rrDrr_@diHbdQbaBzrRajAd`[rzL~rwAtfDbhTn|HvvKluRvqWjiNxjHnlE|@ppKpfJbtDroDth@vre@oFnxRigF|nO{bEbwRwpGhmLld@rrKxuCbbRbnKbhSnve@vrr@}sBxqs@f{AnwZvZh{a@qnGdnSa~AlrKfmLjhe@q|AfmOj|FvlYzvE|br@j{Axr_@hkFfre@jhIdrg@udJbuRknHpbBgzBpdFc~AhyJorBzaOu|AffTpzFnaLv_W`{d@lhPrfJvxEfnJ~`KvuJ`nE~bTgzGztVwf@vsHngJ`eI~vV`yFv`m@sgAhhGwcC~iHtiH`ed@ruUbtO`tYv~Vlf^hdHlq@bnFvqLxin@p|Rxp[rkWnyTzka@jtVfqLvtF|aa@vcF`|Erc@~cIp}MjyUzuC|{O`lGp~Qhn@|rc@~mS|eg@vtZzi_@hqL|uSpkOrqHldHhkHl|Kjk[bgLdxItqa@jtDjiPbbDhwQryQlou@beVh|LnrJw}@~yRdk`@hhsAf~RtwSnbRblZp|CtgZfs]radA~~Bf_[zvArjTrcFfjNtzb@xgWziUtsN|af@tp\\blEluFpuFmsDn|FaoCdwCqlB~hFb|D|nMthQl_FfvFsxA|tYl|AnwP_Fzca@zbApjr@x]xP"


alert(a.length) //length is 1279

$.ajax({
    cache : false,
    url : 'get_polylines.action',
    type : 'post',
    dataType : 'json',
    async : false,
    success : function(result) {
       var polyline = result.polyline;

       var arr = new Array();
       var k = 0;
       for ( var j = 0; j &lt; polyline.length; j++) {
          arr [k] = polyline[j];
          k++;
       }
      for(var i=0; i&lt;arr.length; i++){
        alert(arr[i].length); //length is 1284
       }
    },

});
</code></pre>

<p>when I put this string in input hiiden filed and then get value it also alerts length 1284</p>
