From: John Joyce Date: 2007-03-25T17:41:22+09:00 Subject: Re: adding anotehr each method to String I mean you should check into the way Ruby works with multi-byte characters! But this should be watched carefully with every language. Typing multibyte characters on many windows systems is a pain in the behind. Luckily it's not so painful on osx, so I can type an umlaut by option+u then the character I want it over. Here is what happens... irb(main):001:0> mystring ="\303\274mlaut" => "\303\274mlaut" irb(main):002:0> puts mystring �mlaut => nil irb(main):003:0> puts mystring.length 7 => nil On Mar 25, 2007, at 5:25 PM, Une B�vue wrote: > John Joyce wrote: > >> Might not do what you expect. >> under current conditions you might get: >> � >> u >> >> instead of >> � > > then, u mean, it wouldn't work with NON-ASCII chars ? > > it doesn't matter in fact because i'm playing with US-ASCII chars only > in that case. > > but thanks a lot, better to know ! > -- > It's easy to play any musical instrument: all you have to do is > touch the right key at the right time and the instrument will > play itself. -- J.S. Bach >