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

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to