summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2012-05-26 23:19:27 -0300
committerGabriel Mazetto <brodock@gmail.com>2012-05-26 23:19:37 -0300
commit11f90ae42eeca1c9bcc415d046663efef0941bf0 (patch)
tree5e68b5a9af4223a1bd7aa351fce5f48f8938752a /lib
parent50c2c16a4d8ca52c4abcbef638f5105a9b0d1ee0 (diff)
downloadgitlab-ce-11f90ae42eeca1c9bcc415d046663efef0941bf0.tar.gz
Forgot to refactor a line on lib/gitlabhq/encode.rb
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlabhq/encode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlabhq/encode.rb b/lib/gitlabhq/encode.rb
index 780d839f420..1a81accea64 100644
--- a/lib/gitlabhq/encode.rb
+++ b/lib/gitlabhq/encode.rb
@@ -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")