[Catalyst] TT and UNICODE: Garbled special characters

Stefan Kühn ducdebreme at early-dance.de
Fri Sep 7 16:52:01 GMT 2007


On 9/7/07, Matt Lawrence <matt.lawrence at ymogen.net> wrote:
> AFAIK, single-byte-width \xxx escapes are always treated as bytes, not
> as characters. Even if they are outside the 7-bit range, and even in the
> presence of the utf8 pragma.
>
> Try inserting real Unicode characters into the string, explicitly
> upgrading the string using utf8::upgrade or utf8 or use encoding 'latin1'.

This was a good hint:
* __utf8::upgrade__ on the string worked
* __use utf8;__ worked too
* when using __use encoding..__, Activestate Perl crashed
So, the byte/character handling is the clue.
Thanks, Stefan



More information about the Catalyst mailing list