Merge branch 'master' of github.com:gitlabhq/gitlabhq
This commit is contained in:
commit
b5fdacd153
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ module Gitlabhq
|
|||
extend self
|
||||
|
||||
def utf8 message
|
||||
hash = CharlockHolmes::EncodingDetector.detect(message)
|
||||
hash = CharlockHolmes::EncodingDetector.detect(message) rescue {}
|
||||
if hash[:encoding]
|
||||
CharlockHolmes::Converter.convert(message, hash[:encoding], 'UTF-8')
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue