[Catalyst] Encoding UTF8 ?

John M. Dlugosz wxju46gefd at snkmail.com
Mon Mar 28 23:11:16 GMT 2011

On 3/28/2011 3:16 PM, Bill Moseley moseley-at-hank.org |Catalyst/Allow to home| wrote:
> Yes, that would be related to not encoding with the plugin.  You need the
> plugin to encode output so you don't that that message.
> John, you are better off ignoring that Perl is using UTF-8 internally. All
> byte data that represents characters must be decoded on input -- and
> likewise all characters in Perl must be encoded before writing.
> I know I discussed this before, but is there a plan to make decoding and
> encoding part of Catalyst core?  Seems to trip people up and it seems like
> something that should always be done.
At the very least, low-hanging fruit would be to mention this in the error message.  "See 
FAQ entry #1234 at <url...>" when it dies!

More information about the Catalyst mailing list