On Fri, Oct 16, 2015 at 7:42 AM, Z.H. <zoh...@yeah.net> wrote: > Hi all, wxLua reference manual says the following classes are unavailable: > > wxCSConv X Lua uses ANSI 8-bit strings > wxEncodingConverter X Lua uses ANSI 8-bit strings > wxMBConv X Lua uses ANSI 8-bit strings > wxMBConvFile X Lua uses ANSI 8-bit strings > wxMBConvUTF16 X Lua uses ANSI 8-bit strings > wxMBConvUTF32 X Lua uses ANSI 8-bit strings > wxMBConvUTF7 X Lua uses ANSI 8-bit strings > wxMBConvUTF8 X Lua uses ANSI 8-bit strings > > As far as I know, wxLua unicode build will treat all lua strings as utf-8 > strings when converting them from/to wxString's. > It works fine in most situations. But some applications need to read and > write files with other encodings > (see for example the post by Victor Bombi : > http://sourceforge.net/p/wxlua/mailman/message/33546327/ ). > In this case, wxEncodingConverter and wxMBConv are neccessary. > > Is it possible for wxLua to implement the above classes? >
The comments about only using ANSI 8-bit strings is slightly misleading in that they do handle utf-8 as shown in the message you show, but any Lua string functions will probably not work as expected. This is why I'm not sure that they would be very useful. Maybe there is a small subset of the functionality that would suffice for you and what would that be? Regards, John
------------------------------------------------------------------------------
_______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users