[Catalyst] Catalyst and UTF-8
Tatsuhiko Miyagawa
miyagawa at gmail.com
Wed Nov 29 03:19:00 GMT 2006
On 11/28/06, Bill Moseley <moseley at hank.org> wrote:
> On Wed, Nov 29, 2006 at 11:33:46AM +1030, Jon wrote:
> > In my experience, you're best off treating all of your data internally
> > as UTF-8, by placing
> >
> > use encoding 'utf8'
>
> Doesn't that just say your source code is encoded in utf8? And also that
> STDIN and STDOUT use that layer?
It also sets the (interesting) side effect that the implicit upgrading
from byte-string to Unicode uses utf-8 as an encoding, not iso-8859-1.
See perldoc encoding::warnings for details.
http://search.cpan.org/~autrijus/encoding-warnings-0.05/lib/encoding/warnings.pm
--
Tatsuhiko Miyagawa
More information about the Catalyst
mailing list