Set internal and external encoding to UTF-8

This commit is contained in:
Holger Just 2011-10-08 20:03:33 +02:00
parent 3cc95353cd
commit 0ed5cb3f05
1 changed files with 5 additions and 0 deletions

View File

@ -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')