[Catalyst-commits] r11403 -
trunk/Catalyst-Plugin-Unicode/lib/Catalyst/Plugin
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Thu Sep 24 16:38:09 GMT 2009
Author: t0m
Date: 2009-09-24 16:38:08 +0000 (Thu, 24 Sep 2009)
New Revision: 11403
Modified:
trunk/Catalyst-Plugin-Unicode/lib/Catalyst/Plugin/Unicode.pm
Log:
Chomp trailing space, add myself to POD
Modified: trunk/Catalyst-Plugin-Unicode/lib/Catalyst/Plugin/Unicode.pm
===================================================================
--- trunk/Catalyst-Plugin-Unicode/lib/Catalyst/Plugin/Unicode.pm 2009-09-24 10:25:46 UTC (rev 11402)
+++ trunk/Catalyst-Plugin-Unicode/lib/Catalyst/Plugin/Unicode.pm 2009-09-24 16:38:08 UTC (rev 11403)
@@ -8,11 +8,11 @@
sub finalize {
my $c = shift;
-
+
if ( $c->response->{body} && utf8::is_utf8($c->response->{body}) ){
utf8::encode( $c->response->{body} );
}
-
+
return $c->next::method(@_);
}
@@ -46,7 +46,7 @@
=head1 DESCRIPTION
-On request, decodes all params from UTF-8 octets into a sequence of
+On request, decodes all params from UTF-8 octets into a sequence of
logical characters. On response, encodes body into UTF-8 octets.
=head1 OVERLOADED METHODS
@@ -75,9 +75,11 @@
Jonathan Rockway C<< <jrockway at cpan.org> >>
+Tomas Doran, (t0m) C<< <bobtfish at bobtfish.net> >>
+
=head1 LICENSE
-This library is free software . You can redistribute it and/or modify
+This library is free software . You can redistribute it and/or modify
it under the same terms as perl itself.
=cut
More information about the Catalyst-commits
mailing list