Character encoding auto-detection in Ruby. As smart as your browser. Open source.
Jeff Hodges
gem "kbaum-rchardet", "~> 1.3"