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