Commit b5fdacd1 authored by gitlabhq's avatar gitlabhq

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

parents c9af8e75 bbb93de1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment