[Catalyst-commits] r11404 - in trunk/Catalyst-Plugin-Unicode: . lib/Catalyst/Plugin

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Thu Sep 24 16:40:31 GMT 2009


Author: t0m
Date: 2009-09-24 16:40:31 +0000 (Thu, 24 Sep 2009)
New Revision: 11404

Modified:
   trunk/Catalyst-Plugin-Unicode/Makefile.PL
   trunk/Catalyst-Plugin-Unicode/lib/Catalyst/Plugin/Unicode.pm
Log:
Note that Unicode::Encoding is probably a better option

Modified: trunk/Catalyst-Plugin-Unicode/Makefile.PL
===================================================================
--- trunk/Catalyst-Plugin-Unicode/Makefile.PL	2009-09-24 16:38:08 UTC (rev 11403)
+++ trunk/Catalyst-Plugin-Unicode/Makefile.PL	2009-09-24 16:40:31 UTC (rev 11404)
@@ -6,6 +6,7 @@
 author 'Christian Hansen <ch at ngmedia.com>';
 author 'Marcus Ramberg <mramberg at pcan.org>';
 author 'Jonathan Rockway <jrockway at cpan.org>';
+author 'Tomas Doran <bobtfish at bobtfish.net>';
 
 requires 'Catalyst::Runtime' => '5.70';
 requires 'MRO::Compat' => '0.10';

Modified: trunk/Catalyst-Plugin-Unicode/lib/Catalyst/Plugin/Unicode.pm
===================================================================
--- trunk/Catalyst-Plugin-Unicode/lib/Catalyst/Plugin/Unicode.pm	2009-09-24 16:38:08 UTC (rev 11403)
+++ trunk/Catalyst-Plugin-Unicode/lib/Catalyst/Plugin/Unicode.pm	2009-09-24 16:40:31 UTC (rev 11404)
@@ -49,6 +49,14 @@
 On request, decodes all params from UTF-8 octets into a sequence of
 logical characters. On response, encodes body into UTF-8 octets.
 
+Note that this plugin tries to autodetect if your response is encoded into
+characters before trying to encode it into a byte stream. This is bad
+as sometimes it can guess wrongly and cause problems.
+
+Using L<Catalyst::Plugin::Unicode::Encoding> is more recommended, but that
+requires that all data inputs have correctly been decoded into perls
+internal character representation.
+
 =head1 OVERLOADED METHODS
 
 =over 4




More information about the Catalyst-commits mailing list