diff --git a/config/environment.rb b/config/environment.rb index 7380bd7615bdcf288c31fa1116346813c5df2c2d..a07475af7ab0d541b0703ca295ecf19d7682d73f 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')