commit ad5d92b919b50d4f68f2094668aa470c036d9b3e
parent 4a396c5b4af71d10c69f3ce7df411ac99ad0a3bf
Author: Gaute Hope <eg@gaute.vetsj.com>
Date: Wed, 29 May 2013 00:08:40 +0200
use fix_encoding, not force_encoding
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/account.rb b/lib/sup/account.rb
@@ -51,7 +51,7 @@ class AccountManager
end
hash[:alternates] ||= []
- [:name, :signature].each { |x| hash[x].force_encoding Encoding::UTF_8 if hash[x].respond_to? :encoding }
+ [:name, :signature].each { |x| hash[x] ? hash[x].fix_encoding : nil }
a = Account.new hash
@accounts[a] = true