[Catalyst] CSV / UTF-8 / Unicode

Bill Moseley moseley at hank.org
Tue Jul 2 16:08:19 GMT 2013


Before we get a long utf8 discussion here:

On Tue, Jul 2, 2013 at 8:58 AM, Bill Moseley <moseley at hank.org> wrote:

>
> Personally, I think the correct approach is to only encode *character* da=
ta
> -- 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
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20130702/03fc6=
fb7/attachment.htm


More information about the Catalyst mailing list