From: Stefan Matthias Aust Date: 2001-04-17T02:41:24+09:00 Subject: [ruby-talk:13708] Re: ANN: German Ruby article in the iX magazine (5/2001) Dave, Thanks for your reply, but... On Tue, 17 Apr 2001 00:28:32 +0900, Dave Thomas wrote: >Stefan Matthias Aust writes: > >> A small annoyance is IMHO that I cannot put umlauts in variable or >> method names and I'm even unable (using a Windows Ruby from the >> pragmatic programmer's page in a cygwin shell) to print umlauts. >Ruby strings are 8-bit clean, and so should just print: > > dave[~ 10:22:48] ruby -e 'puts "gewschte Gre"' > gewschte Gre > >Perhaps your KCODE is not set to 'NONE'? What's a KCODE? Do you mean the "-K" command line switch? Neither a, A, n, N nor U will do the trick. If I do a ruby -K? -e 'p $KCODE' and replace ? with on of the letters, I never get back "ASCII" - just "NONE" and "UTF8" for U. Neither NONE encoding nor UTF8 encoding will print umlauts. I could probably figure out the UTF8 encoding but that would be annoying to use. I'm using the Windows version of Ruby from your website on cygwin 1.1.8. Could it be that is version has been built without ASCII support? BTW, even if your mail tools thinks it's using ISO-8859-1 encoding, my news reader, which normally has no problems with any western european letter, can't show the umlauts (I assume) of your kind greetings correctly - see quotation. bye -- Stefan Matthias Aust \/ Truth Until Paradox