Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit b5fdacd153977748f16439689487be35c3699e9b 2 parents c9af8e7 + bbb93de
gitlabhq authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/gitlabhq/encode.rb
View
2  lib/gitlabhq/encode.rb
@@ -3,7 +3,7 @@ module Encode
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
Please sign in to comment.
Something went wrong with that request. Please try again.