From: James Gray Date: 2008-03-11T21:49:17+09:00 Subject: Re: Reding unicode characters? On Mar 10, 2008, at 10:29 PM, 7stud -- wrote: > James Gray wrote: >> On Mar 10, 2008, at 10:00 AM, 7stud -- wrote: >> >>>> Jose Martin >>> >>> Ruby does not support unicode. >> >> Really? >> >> $ ruby -KU -r jcode -e 'p "Résumé".jsize' >> 6 >> >> James Edward Gray II > > How does that prove the ruby supports unicode? If the code was not character aware, it would have returned a count of the bytes in the String (more than six). String#size, for example. > Where are there any unicode characters in your string? I entered the accented e characters in UTF-8, that's why you see the - KU switch to tell Ruby the encoding. James Edward Gray II