[Catalyst] Problem with Catalyst::Plugin::I18N using UTF-8

Knut-Olav Hoven hovenko at linpro.no
Fri Dec 21 18:57:06 GMT 2007


On Friday 21 December 2007 19:31:09 Brian Cassidy wrote:
> Knut-Olav Hoven wrote:
> > There are some problems when translating with Catalyst::Plugin::I18N
> > using special unicode characters like "æøå".
> >
> > It got printed (both in console/debugging) and in web browser) as
> > unprintable characters (displayed as "?"). Manually changing encoding in
> > Firefox to ISO-8859-1 made it look right, but the rest of the page is
> > using UTF-8, so this was a no-go solution for me.
> >
> > The solution I found to this was to change line 65 of
> > Catalyst/Plugin/I18N.pm (version 0.06), changed the Decode attribute
> > given
> > to "Locale::Maketext::Simple" from 1 to 0.
>
> I'm using the I18N plugin with unicode characters just fine. Your
> work-around seems suspect to me.
>
> Are you using the Unicode plugin? If not, try adding that to the mix and
> see if that makes things jive for ya.

That seems like an odd solution...

The Decode parameter is used to decode unicode characters, while the Unicode 
plugin is encoding to unicode...?

>
> -Brian
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/



-- 
Knut-Olav Hoven
Systemutvikler               mob: +47 986 71 700
Linpro AS                    http://www.linpro.no/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071221/d364413e/attachment.pgp


More information about the Catalyst mailing list