GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTTP::ENGINE::MIDDLEWARE::ENCODE (3)

.ds Aq ’

NAME

HTTP::Engine::Middleware::Encode - Encoding Filter

CONTENTS

SYNOPSIS

default: in code = utf8, out code = utf8



    my $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();



AUTHORS

precuredaisuki

yappo

SEE ALSO

Data::Visitor::Encode
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 HTTP::ENGINE::MIDDLEWARE::ENCODE (3) 2010-03-08

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.