Before we get a long utf8 discussion here:

On Tue, Jul 2, 2013 at 8:58 AM, Bill Moseley <[email protected]> wrote:

>
> Personally, I think the correct approach is to only encode *character* data
> -- that is check to see if the utf8 flag is set before calling encode.
>

I say that with the caveat that ALL textual input data is correctly decoded
-- as it should be.  That is, everything that was decoded into characters
has the utf8 flag set.

$ perl -MEncode -le 'print "yes, this is characters" if Encode::is_utf8(
Encode::decode( "ASCII", "This is ASCII"))'
yes, this is characters



-- 
Bill Moseley
[email protected]
_______________________________________________
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