Commit 11f90ae4 authored by Gabriel Mazetto's avatar Gabriel Mazetto

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

parent 50c2c16a
...@@ -12,7 +12,7 @@ module Gitlabhq ...@@ -12,7 +12,7 @@ module Gitlabhq
# It's better to default to UTF-8 as sometimes it's wrongly detected as another charset # It's better to default to UTF-8 as sometimes it's wrongly detected as another charset
if detect[:encoding] && detect[:confidence] == 100 if detect[:encoding] && detect[:confidence] == 100
CharlockHolmes::Converter.convert(message, encoding, 'UTF-8') CharlockHolmes::Converter.convert(message, detect[:encoding], 'UTF-8')
else else
message message
end.force_encoding("utf-8") end.force_encoding("utf-8")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment