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