[Catalyst] More unicode problems (uri_for)
Knut-Olav Hoven
hovenko at linpro.no
Fri Dec 28 18:18:00 GMT 2007
On Friday 28 December 2007 17:56:45 Andrew Rodland wrote:
> On Monday 24 December 2007 07:58:34 am Knut-Olav Hoven wrote:
> > I wasn't very clear on this, sorry.
> > "Check my å" is not inside the code, it comes from my "po/mo"-files
> > (i18n).
> >
> > It looks actually more like this:
> >
> > $c->redirect(
> > $c->uri_for(
> > '/login',
> > {error_msg => $c->loc("Check my magic")}
> > );
> > );
> >
> > po-file (utf8 encoded):
> > msgid "Check my magic"
> > msgstr "Check my å"
>
> pofiles have a Content-Type header/declaration/whatever. Does your .po file
> declare itself as
>
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> ?
Here is my po header (used poEdit):
msgid ""
msgstr ""
"Project-Id-Version: Followme\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: 2007-12-21 19:23+0100\n"
"Last-Translator: Knut-Olav Hoven <hovenko at linpro.no>\n"
"Language-Team: Linpro\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Poedit-Language: Norwegian Bokmal\n"
"X-Poedit-Country: NORWAY\n"
"X-Poedit-SourceCharset: utf-8\n"
>
>
> Andrew
>
> _______________________________________________
> 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.scsys.co.uk/
> 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/20071228/23330977/attachment.pgp
More information about the Catalyst
mailing list