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

Version Path
thinking-sphinx-3.4.2 lib/thinking_sphinx/utf8.rb
thinking-sphinx-3.4.1 lib/thinking_sphinx/utf8.rb
thinking-sphinx-3.4.0 lib/thinking_sphinx/utf8.rb
thinking-sphinx-3.3.0 lib/thinking_sphinx/utf8.rb
thinking-sphinx-3.2.0 lib/thinking_sphinx/utf8.rb
thinking-sphinx-3.1.4 lib/thinking_sphinx/utf8.rb
thinking-sphinx-3.1.3 lib/thinking_sphinx/utf8.rb
thinking-sphinx-3.1.2 lib/thinking_sphinx/utf8.rb
thinking-sphinx-3.1.1 lib/thinking_sphinx/utf8.rb
thinking-sphinx-3.1.0 lib/thinking_sphinx/utf8.rb
thinking-sphinx-3.0.6 lib/thinking_sphinx/utf8.rb