在Ruby on Rails中编码一个字符串

Luc*_*nan 4 ruby ruby-on-rails

如何使用Ruby 1.8.7在Ruby on Rails中编码字符串(例如iso到utf-8)?