[Catalyst] utf8 in mysql

Jonathan Rockway jon at jrock.us
Sun Dec 2 16:11:38 GMT 2007


On Sun, 2007-12-02 at 16:41 +0200, Angel Kolev wrote:
> Hi again :) I found a solution i think. With Encode::Detect i can do:
>   use Encode;
>   require Encode::Detect;
>   my $utf8 = decode("Detect", $data);

Looks like this module uses Mozilla's encoding detector, which does a
pretty good job in my experience.  If you're trying to guess the
encoding of small pieces of text, though, this method probably won't
work.  The best thing to do is to ask the user what encoding he's using,
or mandate UTF-8.

Regards,
Jonathan Rockway

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.scsys.co.uk/pipermail/catalyst/attachments/20071202/b28bfa03/attachment.pgp


More information about the Catalyst mailing list