On Nov 15, 5:48 pm, "Austin Ziegler" <halosta... / gmail.com> wrote:
> On 11/15/06, m44r... / yahoo.com <m44r... / yahoo.com> wrote:
>
> > Hi all,
>
> > I have a problem usingunicodecharacters in the windows command.
>
> > As a very simple example, when I type this:
>
> > H:\>ruby -e 'puts "rien ? faire"'
>
> > I will get the following:
>
> > rien ? faire
>
> > Does anyone know what causes this?
> > When I run my scripts from Scite, this problem doesn't come up.Please search the archives. There was a discussion about the
> limitations ofcmd.exeandUnicode. What you want generally can't be
> done from the command-line in Windows.
>
> -austin
> --
> Austin Ziegler * halosta... / gmail.com *http://www.halostatue.ca/
>                * aus... / halostatue.ca *http://www.halostatue.ca/feed/
>                * aus... / zieglers.ca


Thanks, this got me on my way.

It seems this works:

require 'iconv'
puts Iconv.new("ibm850","iso-8859-1").iconv("rien ? faire")