Sha256: 7579521e564259bfbdcb4788c39943f911b4b553452b93fe33e8e555dd682c2c
Contents?: true
Size: 250 Bytes
Versions: 11
Compression:
Stored size: 250 Bytes
Contents
class ThinkingSphinx::UTF8 attr_reader :string def self.encode(string) new(string).encode end def initialize(string) @string = string end def encode string.encode!('ISO-8859-1') string.force_encoding('UTF-8') end end
Version data entries
11 entries across 11 versions & 1 rubygems