Subject:
Re: [ruby-ffi] Re: unable to find method?
From:
Luis Lavena
Date:
12/18/09 12:55 PM
To:
ruby-ffi@googlegroups.com

On Fri, Dec 18, 2009 at 3:45 PM, rogerdpack <rogerpack2005@gmail.com> wrote:
>> > Any guesses as to how I can reliably detect which one of those to use?
>> > [or is ruby always wanting A...? if so, is there even a way to use W?]
>>
>> W functions uses Wide characters, which are based on UTF16, not UTF8
>> that Ruby 1.9 can handle natively.
>>
>> AFAIK: You will need to perform encoding conversions back and forth.
>
> Interesting...so is it the case that on some boxes, only A will work,
> and on others only W?
> is "abc".encode("UTF-16BE") UTF 16?
>

Take this thread as reference.

http://social.msdn.microsoft.com/Forums/en/windowssdk/thread/ad1e680b-d5d1-47a3-bc82-1d69b1b360cd

In theory with 1.9 encoding will be something of the past, but dunno
how to make that work in this case.

I think is time for getting your hands dirty instead of just theory ;-)

-- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exupéry