On Wed, Jan 14, 2009 at 8:40 PM, Jérôme Etévé <jerome.et...@gmail.com> wrote:
> Hi !
>
>  Neither the http protocol or mason deals with decoding of inputs.
>  If your param potentially contains utf-8 encoded unicode characters
> as well as html entities,  then you
>  have to decode it like that:
>
>      my $dec =
> HTML::Entities::decode_entities(Encode::decode_utf8($r->param('myparam')));
>
>  Then $dec will be a perl unicode string with its own internal
> representation you should care about.

---- READ 'you shouldn't' - Sorry.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to