In a rails application you can specify the default chracter encoding in your application config.
Add the following code inside the Application
class in in config/application.rb
Looks something like:
# Configure the default encoding used in templates for Ruby 1.9.
config.encoding = "utf-8"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…