Looks like a classic encoding mismatch: the browser is returning
UTF-8 and you’re expecting something different (probably WinLatin1,
aka CP-1252). Make sure your HTML has a tag specifying the
intended encoding.
This brings up the question in my mind of how to deal with UTF-8 in
Ruby. Last checked, there was no native support for different
character encodings or Unicode text. Has that been improved since
1.6? Or are there optional libraries we can use to work with Unicode?
This brings up the question in my mind of how to deal with UTF-8 in
Ruby. Last checked, there was no native support for different character
encodings or Unicode text. Has that been improved since 1.6? Or are
there optional libraries we can use to work with Unicode?
The canned response is KCODE=‘u’; require ‘jcode’; but that’s got a
whole bunch of holes in it. By strange coincidence, though, _why posted
this a couple of days ago: