Character encoding auto-detection in Ruby. As smart as your browser. Open source. (Ruby 1.9 compat)
Ruby
Pull request Compare This branch is 1 commit ahead of speedmax:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
COPYING
README
Rakefile

README

rCharDet
=========
rCharDet is a character encoding detection library for ruby and the implementation is based
on Mozilla Charset Detectors. This is a forked project in a effort to make it Ruby 1.9 compatible

Usage:
    require 'rubygems'
    require 'rchardet'

    cd = CharDet.detect(some_data)
    encoding = cd['encoding']
    confidence = cd['confidence'] # 0.0 <= confidence <= 1.0

Project page: 
    http://rubyforge.org/projects/rchardet

    Made for rFeedParser <http://rfeedparser.rubyforge.org>.