Note that there are some explanatory texts on larger screens.

plurals
  1. POWordpress foreign language in .php
    text
    copied!<p>I'm editing a site for someone, and they are using wordpress, which I really don't like, but hey, I didn't pick it. I need to change some text on their page to Portuguese characters such as Ç or Ã. I've read in a few places, that I need to change from ASCII to UTF-8, but I'm not sure where to do that, or how to do it across the whole site. Am I changing a database to UTF-8, or each individual php file? Hopefully somebody knows, thanks.</p> <p>Thanks to the comments below, I have most of the site running correctly, but now I can't get the foreign characters in just certain spots, for example, anywhere I'm using code like this inside of a .php file.</p> <pre><code>$email_list = do_shortcode('[pl_modal title="Join our email list" label="&lt;img class=\'\' title=\'Join our email list\' src=\'/wp-content/uploads/2013/02/email_icon.png\' /&gt;&lt;br /&gt;&lt;span&gt;INSCREVA-SE A NOSSA&lt;br /&gt;LISTA DE E-MAILS&lt;/span&gt;"][gravityform id=1 title=false][/pl_modal]'); </code></pre> <p>The portugese in the above code, if I add non english characters, I get a constantly loading error. More code, that does the same thing.</p> <pre><code>'&lt;div class="graphicbuttons_cont"&gt;' . '&lt;a href="https://maps.google.com/maps?saddr={19}&amp;daddr={20}" target="_blank"&gt; &lt;img title="Get Store Directions" src="/wp-content/uploads/2013/02/getdirection_icon.png" /&gt;&lt;br /&gt;&lt;span&gt;LOCALIZACOES &lt;br&gt;&lt;br /&gt; &lt;/span&gt; &lt;/a&gt;' . '&lt;/div&gt;' . </code></pre> <p>the LOCALIZACOES in above text, should have special characters, but it won't hold them. I have changed everything to UTF8 that I can find. But there is nothing inside this specific file that says utf8, should I add something?</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