Encoding detection for ruby.
gem install rchardet
Usage
require 'rubygems'
require 'rchardet'
cd = CharDet.detect(some_data)
encoding = cd['encoding']
confidence = cd['confidence'] # 0.0 <= confidence <= 1.0
Maintained by Michael Grosser
michael@grosser.it
License: LGPL
Made for rFeedParser