Skip to content

Commit

Permalink
force utf-8 encoding on strings returned by a xapian document
Browse files Browse the repository at this point in the history
  • Loading branch information
gernotkogler committed Feb 19, 2013
1 parent da444d8 commit 81e684d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/type_codec.rb
Expand Up @@ -62,7 +62,7 @@ def self.encode(object)
# @param [String] string a string
# @return [String] the string
def self.decode(string)
string
string.force_encoding("UTF-8")
end
end

Expand Down

0 comments on commit 81e684d

Please sign in to comment.