Query: catalyst::plugin::unicode::encoding
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Catalyst::Plugin::Unicode::Encoding(3pm) User Contributed Perl Documentation Catalyst::Plugin::Unicode::Encoding(3pm)NAMECatalyst::Plugin::Unicode::Encoding - Unicode aware CatalystSYNOPSISuse Catalyst qw[Unicode::Encoding]; MyApp->config( encoding => 'UTF-8' ); # A valid Encode encodingDESCRIPTIONOn request, decodes all params from encoding into a sequence of logical characters. On response, encodes body into encoding.METHODSencoding Returns an instance of an "Encode" encoding print $c->encoding->nameOVERLOADED METHODSfinalize_headers Encodes body into encoding. prepare_uploads Decodes parameters, query_parameters, body_parameters and filenames in file uploads into a sequence of logical characters. prepare_action Decodes request arguments (i.e. "$c->request->arguments") and captures (i.e. "$c->request->captures"). setup Setups "$c->encoding" with encoding specified in "$c->config->{encoding}". handle_unicode_encoding_exception ($exception_context) Method called when decoding process for a request fails. An $exception_context hashref is provided to allow you to override the behaviour of your application when given data with incorrect encodings. The default method throws exceptions in the case of invalid request parameters (resulting in a 500 error), but ignores errors in upload filenames. The keys passed in the $exception_context hash are: param_value The value which was not able to be decoded. error_msg The exception recieved from Encode. encoding_step What type of data was being decoded. Valid values are (currently) "params" - for request parameters / arguments / captures and "uploads" - for request upload filenames.SEE ALSOEncode, Encode::Encoding, Catalyst::Plugin::Unicode, Catalyst.AUTHORSChristian Hansen, "ch@ngmedia.com" Masahiro Chiba Tomas Doran, "bobtfish@bobtfish.net"LICENSEThis library is free software . You can redistribute it and/or modify it under the same terms as perl itself. perl v5.14.2 2012-05-09 Catalyst::Plugin::Unicode::Encoding(3pm)
Similar Topics in the Unix Linux Community |
---|
Encoding Type |
Encoding Information in Clustered-Dot Halftones |
Capture filenames with a Pattern into another file |