On Mon, Mar 28, 2011 at 7:50 PM, John M. Dlugosz <[email protected]>wrote:

>  I don't understand why
>
> Catalyst::Plugin::Unicode::Encoding
> is necessary, based on the writup: it takes request arguments and converts
> them from whatever they came in to Perl's native encoding, and likewise for
> the response.
>
> But Perl is using UTF-8 in its strings anyway.  So what's it have to do
> with the engine error I noticed before?
>

The point is that if they are not marked as UTF-8 then they are treated as
bytes not characters.  In fact you should never think about the internal
storage of strings - it is not part of the API - it can be changed.  You
always need to decode external data if you want to treat it as strings and
not byte streams.

http://perldoc.perl.org/perlunitut.html has all the this introductory info.

-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to