Merge branch 'master' of github.com:gitlabhq/gitlabhq

This commit is contained in:
gitlabhq 2012-04-24 17:52:10 +03:00
commit b5fdacd153

View file

@ -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