From: Lionel Bouton Date: 2008-03-11T19:04:55+09:00 Subject: Re: Reding unicode characters? 7stud -- wrote: > James Gray wrote: >> [...] >> $ ruby -KU -r jcode -e 'p "R�sum�".jsize' >> 6 >> >> James Edward Gray II > > How does that prove the ruby supports unicode? Where are there any > unicode characters in your string? 1/ There's a difference between codepoints and characters, speaking of unicode "characters" is confusing at best. 2/ "Supporting unicode" is probably meaningless (which unicode encoding by the way?), building UTF-8 applications in Ruby is perfectly doable thanks to jcode, regex UTF-8 support, ... I know, among other things it's what I built my company on. The example above obviously assumes an UTF-8 locale in the terminal you type it... For more data, just try size instead of jsize in the same example and read jcode's rdoc. Lionel