title: Encoding special characters to Base64 in Javascript and decoding using base64_decode() in PHP
body: <p>My problem is that the base64_decode() function does not work with special characters. Maybe the problem is that I am using an ajax event and I am parsing the data using base64.encode from javascript.
  js code: </p>
  
  <pre><code>description: $.base64.encode($("#Contact_description").val())
  </code></pre>
  
  <p>and this is the php code:</p>
  
  <pre><code>$model-&gt;description = base64_decode($model-&gt;description);
  </code></pre>
  
  <p>where <code>$model-&gt;description</code> is the <code>$("#Contact_description").val()</code> value</p>
  
  <p>Example this is the description value : <strong>Traian Băsescu</strong> and this is how I look after using the decode from php : <strong>Traian A�sescu</strong>. What should I do ?</p>
  
  <p><strong>UPDATE:</strong> 
  This the header information from firebug:</p>
  
  <pre><code>Content-Length  143
  Content-Type    text/html; **charset=UTF-8**
  Date    Fri, 20 Mar 2015 12:37:01 GMT
  </code></pre>