Subject:
Re: [ruby-ffi] Re: FFI::StructLayout::CharArray and UTF-8 encoding
From:
"Navaneeth.K.N" <navaneethkn@gmail.com>
Date:
5/9/12 1:31 AM
To:
ruby-ffi@googlegroups.com



On Wed, May 9, 2012 at 4:55 AM, Wayne Meissner <wmeissner@gmail.com> wrote:


On Tuesday, 8 May 2012 15:49:17 UTC+10, Navaneeth KN wrote:

It looks like str.force_encoding('UTF-8') works well. But I am still ineterested  to know if there are any FFI way of specifying the encoding.


There's no way currently.  Can you add a section to the wiki about forcing the string encoding like you did above?

Added these details to the Wiki in examples page.

Thanks

--
-Navaneeth