From: Thomas Thomassen Date: 2009-07-15T17:59:16+09:00 Subject: Re: Ruby 1.8 - character encoding Bill Kelly wrote: > From: "Thomas Thomassen" >> James Gray wrote: >>> >>> That's a good question. I'm not sure what it does on Windows. >> Any clues what I does on OSX? The scripts will run on macs as well. > > Unlike that other OS, both OS X and Linux have taken an approach > I like to refer to as, NOT MIND-NUMBINGLY STUPID. > > In OS X and Linux, one can use the same API calls one has always > used, as they are now UTF-8 savvy. > I found from the Windows API that you actually are meant to call the same API calls. But there's a unicode switch you have to declare. If that switch is true it calls the W (wide - unicode) versions, if not it calls the A (ASCII) versions. -- Posted via http://www.ruby-forum.com/.