Ruby and Unicode


#1

I followed along with the instructions here:

http://www.leftbee.net/articles/2006/08/03/working-with-unicode-in-ruby/

which say that this should work:

$KCODE = 'u’
require 'jcode’
require 'unicode’
Unicode.upcase “Ouvertüre”
=> “OUVERTÜRE”

However, I get the following instead when I run this in irb on Dreamhost:

=> “OUVERTüRE”

So it’s not actually capitalizing the “ü” like I’d expect. Has anyone else had this problem on Dreamhost?