Ruby and Unicode
Posted by: arthaey
Posted on: 2007-12-29 16:01:00
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?