Follow this: Using Unicode in Catalyst Applications. If you make sure the layers are right on their own and you include the plugin as directed, it'll work right. If it's not working right, something is wrong in one of the layers (or something in your environment; I recently discovered for example that mysql will/can double encode if the encoding is set in the defaults file and the DBD layer). The directive INSERT had, IIRC, encoding issues in the past but if the template file's BOM is right it should be fine and PROCESS and INCLUDE never suffered from the issue (again IIRC).

(update: Make sure you configuration layer is up to date. YAML::XS for YAML, e.g., instead of something older.)


In reply to Re: Catalyst WRAPPER and Unicode (Episode 2) by Your Mother
in thread Catalyst WRAPPER and Unicode (Episode 2) by xiaoyafeng

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.