John Joyce
3/25/2007 8:41:00 AM
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 <dangerwillrobinsondanger@gmail.com> 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
>