JQuery problem with HTML entities
<p>I use this code to receive data from an php file</p>

<pre><code>$.ajax({
                url: "includes/cpf.inc.php",
                type: "POST",
                data:{p_request:"1bdd249a5d673a721be31d7444af81af1af4c5b6",
                        p_userid:"&lt;?php echo $dbu_userid; ?&gt;",
                        p_curpass:$("#txtcurpass").val(),
                        p_newpass:$("#txtnewpass").val(),
                        p_cnewpass:$("#txtcnewpass").val()
                },
                cache:false,
                success:function(msg){
                    $("#chPassLoad").css("visibility","hidden");
                    wilPrompt("#chpasStat",msg.substr(0,1),msg.substr(2));
                    if(msg.substr(0,1)=="0"){
                        $("#txtcurpass").attr("value","");
                        $("#txtnewpass").attr("value","");
                        $("#txtcnewpass").attr("value","");
                    }
                },
                beforeSend:function(){
                    $("#chPassLoad").css("visibility","visible");
                }
            });
</code></pre>

<p>and the data that will be receive from cpf.inc.php contains html entities like this </p>

<pre><code>&amp;#12362;&amp;#12399;&amp;#12424;&amp;#12358;&amp;#12372;&amp;#12374;&amp;#12356;&amp;#12414;&amp;#12377;&amp;#28450;&amp;#23383
</code></pre>

<p>and that html entities are Japanese characters</p>

<blockquote>
  <p>&#12362;&#12399;&#12424;&#12358;&#12372;&#12374;&#12356;&#12414;&#12377;&#28450;&#23383;</p>
</blockquote>

<p>now my problem is when I will receive data from the variable <strong>msg</strong> it returns something like this</p>

<pre><code>pX[h&amp;sigmaf;&amp;#1794;
</code></pre>

<p>Is there any code I need to append on the $.ajax parameters to encode this html entities correctly? thanks</p>
