From b53df221275ba17d63583cd02bb6e3ebd661760c Mon Sep 17 00:00:00 2001 From: "Thomas A. de Ruiter" Date: Tue, 24 Apr 2012 12:41:20 +0200 Subject: [PATCH] Rescue from CharlockHolmes failure --- lib/gitlabhq/encode.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlabhq/encode.rb b/lib/gitlabhq/encode.rb index a493fb21..11d9bd7b 100644 --- a/lib/gitlabhq/encode.rb +++ b/lib/gitlabhq/encode.rb @@ -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