|
NAMEHTTP::Engine::Middleware::Encode - Encoding FilterSYNOPSISdefault: in code = utf8, out code = utf8my $mw = HTTP::Engine::Middleware->new; $mw->install( 'HTTP::Engine::Middleware::Encode', ); HTTP::Engine->new( interface => { module => 'YourFavoriteInterfaceHere', request_handler => $mw->handler( \&handler ), } )->run(); in code = cp932, out code = cp932 (Shift-JIS) my $mw = HTTP::Engine::Middleware->new; $mw->install( 'HTTP::Engine::Middleware::Encode' => { decode => 'cp932', decode => 'cp932', content_type_charset => 'Shift-JIS', }, ); HTTP::Engine->new( interface => { module => 'YourFavoriteInterfaceHere', request_handler => $mw->handler( \&handler ), } )->run(); in code = detect by Content-Type header (default encoding is utf8), out code = utf8 my $mw = HTTP::Engine::Middleware->new; $mw->install( 'HTTP::Engine::Middleware::Encode' => { detected_decode_by_header => 1, decode => 'utf8', }, ); HTTP::Engine->new( interface => { module => 'YourFavoriteInterfaceHere', request_handler => $mw->handler( \&handler ), } )->run(); AUTHORSprecuredaisukiyappo SEE ALSOData::Visitor::Encode
Visit the GSP FreeBSD Man Page Interface. |