Tomas Doran > Catalyst-Plugin-Unicode-0.92 > Catalyst::Plugin::Unicode

Download:
Catalyst-Plugin-Unicode-0.92.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View Bugs
Report a bug
Module Version: 0.92   Source  

NAME ^

Catalyst::Plugin::Unicode - Unicode aware Catalyst

SYNOPSIS ^

    use Catalyst qw[Unicode];

DESCRIPTION ^

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.

As an example, latin1 characters such as é (e-accute) will not actually cause the output to be encoded as utf8.

Using Catalyst::Plugin::Unicode::Encoding is more recommended, but that requires that all data inputs have correctly been decoded into perl's internal character representation.

OVERLOADED METHODS ^

finalize

Encodes body into UTF-8 octets.

prepare_parameters

Decodes parameters into a sequence of logical characters.

SEE ALSO ^

utf8, Catalyst.

AUTHORS ^

Christian Hansen, <ch@ngmedia.com>

Marcus Ramberg, <mramberg@pcan.org>

Jonathan Rockway <jrockway@cpan.org>

Tomas Doran, (t0m) <bobtfish@bobtfish.net>

LICENSE ^

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.