mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
Forgot to refactor a line on lib/gitlabhq/encode.rb
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user