From 11f90ae42eeca1c9bcc415d046663efef0941bf0 Mon Sep 17 00:00:00 2001 From: Gabriel Mazetto Date: Sat, 26 May 2012 23:19:27 -0300 Subject: [PATCH] Forgot to refactor a line on lib/gitlabhq/encode.rb --- 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 780d839f420..1a81accea64 100644 --- a/lib/gitlabhq/encode.rb +++ b/lib/gitlabhq/encode.rb @@ -12,7 +12,7 @@ module Gitlabhq # It's better to default to UTF-8 as sometimes it's wrongly detected as another charset if detect[:encoding] && detect[:confidence] == 100 - CharlockHolmes::Converter.convert(message, encoding, 'UTF-8') + CharlockHolmes::Converter.convert(message, detect[:encoding], 'UTF-8') else message end.force_encoding("utf-8")