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
Contributors
Maintained by Michael Grosser
[email protected]
License: LGPL
Made for rFeedParser