Forgot to refactor a line on lib/gitlabhq/encode.rb

This commit is contained in:
Gabriel Mazetto 2012-05-26 23:19:27 -03:00
parent 50c2c16a4d
commit 11f90ae42e
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module Gitlabhq
# It's better to default to UTF-8 as sometimes it's wrongly detected as another charset
if detect[:encoding] && detect[:confidence] == 100
CharlockHolmes::Converter.convert(message, encoding, 'UTF-8')
CharlockHolmes::Converter.convert(message, detect[:encoding], 'UTF-8')
else
message
end.force_encoding("utf-8")