Class::Param::Encoding - Class Param Encoding Class


NAME

Class::Param::Encoding - Class Param Encoding Class


SYNOPSIS

    $param = Class::Param->new( smiley => "\xE2\x98\xBA" );
    $param = Class::Param::Encoding->new( $param );
    if ( $param->get('smiley') eq "\x{263A}" ) {
        # true
    }


DESCRIPTION

A decorator that decodes param values on the fly.


METHODS

new ( $param [, $encoding ] )

Constructor. Takes two arguments, first should be a instance of the Class::Param::Base manpage and second should be valid the Encode manpage encoding name, defaults to UTF-8.


SEE ASLO

the Class::Param manpage.


AUTHOR

Christian Hansen chansen@cpan.org


COPYRIGHT

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.