Commit 11f90ae42eeca1c9bcc415d046663efef0941bf0
1 parent
50c2c16a
Exists in
master
and in
4 other branches
Forgot to refactor a line on lib/gitlabhq/encode.rb
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/gitlabhq/encode.rb
@@ -12,7 +12,7 @@ module Gitlabhq | @@ -12,7 +12,7 @@ module Gitlabhq | ||
12 | 12 | ||
13 | # It's better to default to UTF-8 as sometimes it's wrongly detected as another charset | 13 | # It's better to default to UTF-8 as sometimes it's wrongly detected as another charset |
14 | if detect[:encoding] && detect[:confidence] == 100 | 14 | if detect[:encoding] && detect[:confidence] == 100 |
15 | - CharlockHolmes::Converter.convert(message, encoding, 'UTF-8') | 15 | + CharlockHolmes::Converter.convert(message, detect[:encoding], 'UTF-8') |
16 | else | 16 | else |
17 | message | 17 | message |
18 | end.force_encoding("utf-8") | 18 | end.force_encoding("utf-8") |