[Dbix-class] Unicode woes
Bill Moseley
moseley at hank.org
Wed Jan 8 17:13:47 GMT 2014
On Wed, Jan 8, 2014 at 7:45 AM, Dave Howorth <dhoworth at mrc-lmb.cam.ac.uk>wr=
ote:
>
> So it looks like all I need to do now is figure out how to tell
> Template::Toolkit to do that when it sees Unicode data.
>
I'm not aware that TT ever does any encoding. You can tell TT how to
decode templates, for example.
In your TT config you should be able to add this to tell TT that your
*templates* are in UTF-8 and need to be decoded when reading.
ENCODING: UTF-8
But then you need to encode on output, of course. For Catalyst look at:
http://search.cpan.org/dist/Catalyst-Runtime-5.90053/lib/Catalyst.pm#ENCODI=
NG
http://search.cpan.org/dist/Catalyst-Runtime/lib/Catalyst/Plugin/Unicode/En=
coding.pm
-- =
Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20140108/0fb=
20829/attachment.htm
More information about the DBIx-Class
mailing list