Hi All, I've been working on a wxLua-based IDE (https://github.com/pkulchenko/ZeroBraneStudio/) and have a bug opened about dealing with utf-8 encoding (https://github.com/pkulchenko/ZeroBraneStudio/issues/7). I've captured relevant information in the ticket; to summarize, I seem to be setting correctly both the the codepage (SetCodePage(wxstc.wxSTC_CP_UTF8)) and the encoding (wxFONTENCODING_UNICODE), but the text is still shown as single-byte garbled content (there are some examples in the ticket), even though the editor seems to recognize that these are two-byte characters (as it doesn't allow to position the cursor in the middle of any unicode character).
Also, when I set wxFONTENCODING_UTF8, I get "No font for displaying text in encoding 'Unicode 8 bit (UTF-8)' found." and even after I select "Lucida Sans Unicode", which is reported to be a unicode font, I still have the issue above. I also found this message from John "They probably compiled it in ANSI mode and not Unicode. Note however that Lua is strictly ANSI only." in this thread (http://comments.gmane.org/gmane.comp.lib.wxwidgets.wxlua.user/2636). Does this mean that the binaries I'm using need to be compiled with some other configuration (Unicode mode)? Note that in my case I'm not manipulating UTF strings, I just want them to be displayed correctly in the editor. Selecting File | Encoding | UTF-8 in Scite from Lua4Windows displays the same text correctly, which confirms that this is not a font issue. What am I doing wrong here? Is there *any* WxLua based application working on windows with UTF8 encoded text (with or without BOM)? I've tested with both 2.8.7 and 2.8.10 (on windows Vista) with the same result. WxLua and wxLuaEdit also show the same behavior. Paul. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users