From 761fe79776ba95067f05bd40fd5318b4d72ac3cb Mon Sep 17 00:00:00 2001 From: Jeff Welling Date: Sun, 12 May 2013 13:56:21 -0700 Subject: [PATCH] Resolved an encoding problem when on Ruby1.9 --- rack-protection/Gemfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rack-protection/Gemfile b/rack-protection/Gemfile index e5149d74..c077f3a9 100644 --- a/rack-protection/Gemfile +++ b/rack-protection/Gemfile @@ -1,4 +1,8 @@ source "http://rubygems.org" +if RUBY_VERSION =~ /1.9/ + Encoding.default_external = Encoding::UTF_8 + Encoding.default_internal = Encoding::UTF_8 +end gem 'rake'