Files | Admin
Notes: require 'rubygems' gem 'rchardet' require 'chardet' # Note the naming difference cd = Chardet.detect('some/file/path') cd['encoding'] # name of encoding, can be used with ICONV cd['confidence'] # 0.0 <= confidence <= 1.0