Forgot to refactor a line on lib/gitlabhq/encode.rb
This commit is contained in:
parent
50c2c16a4d
commit
11f90ae42e
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Reference in a new issue