Weird characters - Encoding problem


I have some text that I am trying to display on my html page than
contains some encoded chars. Something along the line “The worldââ?¢s
Obviously this is supposed to be a “’” but I can’t figure out the
magic spell to sub them out.

Thank you all for your help !!


it is because ruby cannot handle unicode and multibyte chars
for example if you use simple_format(text), this method uses
which will give a wrong value if there are multibyte chars and so the
is screwed

search for unicode hacks plugin in ror wiki

Heri R.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs