From: Hakkı D. <hd...@do...> - 2008-02-14 10:00:28
|
Hi, John Labenski yazmış: > On Feb 12, 2008 3:05 AM, Hakkı Doğusan <hd...@do...> wrote: >>[snip] > > The more I read about Unicode it seems like this is all we need. > http://www.wxwidgets.org/manuals/stable/wx_wxstring.html#wxstring > http://www.wxwidgets.org/manuals/stable/wx_unicode.html#unicode > http://www.wxwidgets.org/manuals/stable/wx_mbconvclasses.html#mbconvclasses > http://www.wxwidgets.org/manuals/stable/wx_wxmbconv.html#wxmbconv > > inline WXDLLIMPEXP_WXLUA wxString lua2wx(const char* luastr) > { > return wxString(luastr, *wxConvCurrent); > } > > inline const WXDLLIMPEXP_WXLUA wxCharBuffer wx2lua(const wxString& wxstr) > { > wxCharBuffer buffer(wxstr.mb_str(*wxConvCurrent)); > return buffer; > } > > Hakkı, could you try these and let me know if they work. > (note: inline added) - xp, ubuntu-7.10, both in Turkish - using wxLuaModule (wx-2.8.7 static, wxLua static, monolithic, unicode) - tested with an inhouse project, which uses - wxLocale for translations - sqlite3 (stores in utf8) It seems work here.. > Regards, > John -- Regards, Hakki Dogusan |