class ThinkingSphinx::UTF8
Attributes
string[R]
Public Class Methods
encode(string)
click to toggle source
# File lib/thinking_sphinx/utf8.rb, line 4 def self.encode(string) new(string).encode end
new(string)
click to toggle source
# File lib/thinking_sphinx/utf8.rb, line 8 def initialize(string) @string = string end
Public Instance Methods
encode()
click to toggle source
# File lib/thinking_sphinx/utf8.rb, line 12 def encode string.encode!('ISO-8859-1') string.force_encoding('UTF-8') end