Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The data that you already have probably needs to be passed through <code>utf8_decode()</code> (not <code>utf8_encode()</code>).</p> <p>To ensure smooth sailing in the future, you should make sure your whole pipe is UTF-8. This is non-trivial, sadly. Off the top of my head, places that need to be checked:</p> <ul> <li>HTTP daemon's default encoding <ul> <li>For Apache, add to .htaccess or httpd.conf: <code>AddDefaultCharset UTF-8</code></li> </ul></li> <li>PHP's default_encoding <ul> <li>Add in .htaccess or server config: <code>php_value default_charset "UTF-8"</code></li> </ul></li> <li>HTTP's header content-type charset <ul> <li><code>header('Content-Type: text/html; charset=UTF-8');</code></li> </ul></li> <li>HTML's meta content-type charset <ul> <li><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;</code></li> </ul></li> <li>PHP's MySQL connection charset <ul> <li><code>mysql_set_charset('utf8');</code></li> </ul></li> <li>MySQL's database default charset and collation <ul> <li>Use charset <code>utf8</code> and collation <code>utf8_general_ci</code></li> </ul></li> <li>MySQL's table and column charset <ul> <li>Use charset <code>utf8</code> and collation <code>utf8_general_ci</code></li> </ul></li> </ul> <p>And if you need to output values that may contain unwanted HTML or XML, use <code>htmlentities($var, ENT_COMPAT, 'UTF-8');</code> instead of simply <code>htmlentities($var);</code></p> <p>Also, use the <code>mb_*</code> functions where possible, such as <code>mb_strlen()</code> and <code>mb_substr()</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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