How can I encode a string (iso to utf-8 for example) in Ruby on Rails, using Ruby 1.8.7 ?
1 Answer
Use toutf8 method.
"my string".toutf8
1 Comment
Simone Carletti
Use ICONV or Ruby 1.9 methods.
How can I encode a string (iso to utf-8 for example) in Ruby on Rails, using Ruby 1.8.7 ?
Use toutf8 method.
"my string".toutf8