Ruby and Unicode


I followed along with the instructions here:

which say that this should work:

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

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


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