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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
List: Catalyst@lists.scsys.co.uk
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