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 |
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.