[Perl5] Encode::Guess

這東西真是太好用了,感謝 hcchien 提供資訊。

use Encode::Guess;
my $decoder = guess_encoding($word, qw/utf-8 big5/);
$word = $decoder->decode( $word);
print $word;
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • funp
  • Haohao
  • Hemidemi
  • Live
  • MisterWong
  • TwitThis
  • udn
 

One reply


  1. CPAN

Leave a reply

Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan
Creative Commons Attribution-NonCommercial-ShareAlike 2.5 Taiwan