From 0ed5cb3f05fcfceab7add09e03841d1ddadf51ba Mon Sep 17 00:00:00 2001 From: Holger Just Date: Sat, 8 Oct 2011 20:03:33 +0200 Subject: [PATCH] Set internal and external encoding to UTF-8 --- config/environment.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/environment.rb b/config/environment.rb index 7380bd76..a07475af 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -20,6 +20,11 @@ # Specifies gem version of Rails to use when vendor/rails is not present RAILS_GEM_VERSION = '2.3.14' unless defined? RAILS_GEM_VERSION +if RUBY_VERSION >= '1.9' + Encoding.default_external = 'UTF-8' + Encoding.default_internal = 'UTF-8' +end + # Bootstrap the Rails environment, frameworks, and default configuration require File.join(File.dirname(__FILE__), 'boot')