I know that in Ruby 1.9 you can easily re-encode a string like this.

s = s.encode('UTF-8')

What is the equivalent in Ruby 1.8? What require lines does it need.

All the tutorials I have seen are needlessly complicated and I don't understand what is going on.

Edit
Report