Note that there are some explanatory texts on larger screens.

plurals
  1. POUTF-8 Spanish Characters Not Displaying
    text
    copied!<p>I am trying desperately to get Spanish characters to show correctly in a MIME email I am sending.</p> <p>So after a few hours of searching I have tried the following to no success.</p> <ol> <li><p>Added the following to my PHP:</p> <pre><code>mb_internal_encoding("UTF-8"); header('Content-Type: text/html; charset=utf-8'); </code></pre></li> <li><p>Ensured that my file is in UTF8 in notepad++</p></li> <li><p>Added the following to my HTML code:</p> <pre><code>&lt;meta http-equiv='Content-Type' content='text/html; charset=UTF-8'&gt; </code></pre></li> <li><p>Added the following to my my.cnf file and restarted the server:</p> <pre><code>init-connect='SET NAMES utf8' </code></pre></li> <li><p>Ensured that all tables are in utf8_unicode_ci</p></li> <li><p>Added the following to queries before the select query:</p> <pre><code>SET NAMES utf8; </code></pre></li> <li><p>I am using mime to send the emails with the following code:</p> <pre><code>// Creating the Mime message $mime = new Mail_mime($crlf); // Setting the body of the email $mime-&gt;setTXTBody($body); $mime-&gt;setHTMLBody($html); $headers = array ('From' =&gt; $from, 'To' =&gt; $to, 'Subject' =&gt; $subject, "Content-Type: text/html;charset=utf-8"); $smtp = Mail::factory('smtp', array ('host' =&gt; $host, 'port' =&gt; $port, 'auth' =&gt; true, 'username' =&gt; $username, 'password' =&gt; $password)); $body = $mime-&gt;get(); $headers = $mime-&gt;headers($headers); $recipients = $to.", ".$bcc; $mail = $smtp-&gt;send($recipients , $headers, $body); </code></pre></li> </ol> <p>I am hoping someone can point me in the right direction.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload