in reply to detect incorrect character encoding

I did something similar using Encode::Guess recently. It is bundled with the latest version of Perl.
  • Comment on Re: detect incorrect character encoding