[Catalyst] Catalyst Unicode woes ...
Jonathan T. Rockway
jon at jrock.us
Thu Aug 9 10:28:13 GMT 2007
On Thu, Aug 09, 2007 at 10:27:27AM +0200, Tobias Kremer wrote:
> I have the problem that up until now everything worked absolutely fine without
> C::P::Unicode, Template::Stash::ForceUTF8, Template::Provider::Encoding or any
ForceUTF8 is a hack hack hack. If your program doesn't work without it,
it's completely broken.
C::P::Unicode is necessary though. If you don't know why, read the
source and the various perl unicode manpages. There's a lot to
understand, and I've explained it too many times to care anymore.
Google it.
The gist of it is this:
<outside octets> -> Encode::decode(...) -> <manipulate it>
-> Encode::encode(...) -> <the user>
If you do manipulation before you decode, your app will break. If you
do manipulation after you encode, your app will break.
Anyway, a whole article about unicode and Catalyst is here:
http://www.catalystframework.org/calendar/2006/21
Learn and enjoy.
Regards,
Jonathan Rockway
More information about the Catalyst
mailing list