From: Carlos Date: 2003-05-29T01:18:41+09:00 Subject: Re: ruby unicode./encoding support > Use the 'jcode' library, and set the encoding to unicode with the -K > option (or by setting the KCODE variable). jcode overrides most of the > methods in class String so that they support the encoding you set with > the -K option. The exception is the length and size methods: it leaves > these untouched and instead gives you two new methods, jlength and jsize: [...] And add 'unicode' and you can also compare, capitalize, etc... irb(main):001:0> $KCODE='u' => "u" irb(main):002:0> require 'jcode' => true irb(main):003:0> a="č" => "č" irb(main):004:0> a.upcase => "č" irb(main):005:0> require 'unicode' => true irb(main):006:0> Unicode.upcase a => "Č" irb(main):007:0>