[Catalyst] TT and UNICODE: Garbled special characters

Daniel McBrearty danielmcbrearty at gmail.com
Wed Sep 5 12:25:15 GMT 2007


>
> It seems to me that Template-Toolkit does no UTF-8-encoding of the
> outputted variables.

well, it shouldn't.

In perl, strings are already utf8, internally. If TT was to do
encoding, they would be double-encoded.

so what you have to do is get that u-with-umlaut *into* perl as a utf8
encoded string. which is a combination of whatever your editor is
doing, and the utf8 pragma.

strange that you still get the problem when you use the \x notation though.

have you tried just writing a test script and outputting the string
into a utf8-aware terminal?

-- 
Daniel McBrearty
email : danielmcbrearty at gmail.com
http://www.engoi.com
http://danmcb.vox.com
http://danmcb.blogger.com
find me on linkedin and facebook
BTW : 0873928131



More information about the Catalyst mailing list