Subject:
[ruby-ffi] Re: FFI::StructLayout::CharArray and UTF-8 encoding
From:
Wayne Meissner
Date:
5/8/12 6:25 PM
To:
ruby-ffi@googlegroups.com



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?