Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In a typical Catalyst setup with Catalyst::View::TT and Catalyst::Model::DBIC::Schema you'll need several things for UTF-8 to work:</p> <ul> <li>add Catalyst::Plugin::Unicode::Encoding to your Catalyst app</li> <li>add <code>encoding =&gt; 'UTF-8'</code> to your app config</li> <li>add <code>ENCODING =&gt; 'utf-8'</code> to your TT view config</li> <li>add <code>&lt;meta http-equiv="Content-type" content="text/html; charset=UTF-8"/&gt;</code> to the <code>&lt;head&gt;</code> section of your html to satisfy old IEs which don't care about the <code>Content-Type:text/html; charset=utf-8</code> http header set by Catalyst::Plugin::Unicode::Encoding</li> <li>make sure your text editor saves your templates in UTF-8 if they include non ASCII characters</li> <li>configure your DBIC model according to <a href="https://metacpan.org/module/DBIx::Class::Manual::Cookbook#Using-Unicode" rel="noreferrer">DBIx::Class::Manual::Cookbook#Using Unicode</a></li> <li>if you use Catalyst::Authentication::Store::LDAP configure your LDAP stores to return UTF-8 by adding <code>ldap_server_options =&gt; { raw =&gt; 'dn' }</code></li> </ul> <p>According to <a href="https://metacpan.org/module/Catalyst::Model::DBIC::Schema#connect_info" rel="noreferrer">Catalyst::Model::DBIC::Schema#connect_info</a>:</p> <p><em>The old arrayref style with hashrefs for DBI then DBIx::Class options is also supported.</em></p> <p>But you are already using the 'new' style so you shouldn't nest the dbi attributes:</p> <pre><code>connect_info =&gt; { dsn =&gt; 'dbi:mysql:test', user =&gt; 'user', password =&gt; 'password', AutoCommit =&gt; 1, RaiseError =&gt; 1, mysql_enable_utf8 =&gt; 1, on_connect_do =&gt; [ 'SET NAMES utf8', ], } </code></pre>
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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