Class String
In: lib/charlock_holmes/string.rb
Parent: Object

Methods

Public Instance methods

Attempt to detect the encoding of this string

Returns: a Hash with :encoding, :language, :type and :confidence

Attempt to detect the encoding of this string then set the encoding to what was detected ala `force_encoding`

Returns: self

Attempt to detect the encoding of this string, and return a list with all the possible encodings that match it.

Returns: an Array with zero or more Hashes,

         each one of them with with :encoding, :language, :type and :confidence

Protected Instance methods

[Validate]