Hi,
yahoo mm wrote:
> I upgraded to wxLua 2.8 but I found that any string containing
> characters over ascii 127 (i.e. with 8 bits, like accented letters, very
> common in italian) is not shown anymore.
>
> I found some old threads dealing about unicode problems, but I was not
> able to solve the problem.
> I use wxLua on Windows, with italian settings.
>
> My programs make use of the function wx.wxFont().
> I tried to use many different encodings for this function, but nothing
> worked
> .
> Can anyone help me ?
>
> Mario
>
>
(From my old message. Maybe it works for you too.)
Changed lua2wx, wx2lua and wxLuaCharBuffer's ctor as follows:
inline WXDLLIMPEXP_WXLUA wxString lua2wx(const char* luastr)
{
if (luastr == NULL) return wxEmptyString; // check for NULL
return wxString(luastr, *wxConvCurrent);
}
inline const WXDLLIMPEXP_WXLUA wxCharBuffer wx2lua(const wxString& wxstr)
{
wxCharBuffer buffer(wxstr.mb_str(*wxConvCurrent));
return buffer;
}
wxLuaCharBuffer(const wxString &wxstr) : m_buffer((const char *)NULL)
{
m_buffer = wxCharBuffer(wxstr.mb_str(*wxConvCurrent));
}
I tested with wxUSE_UNICODE=1 and =0 configurations.
I can use Turkish characters now.
(Mingw, wxLua cvs, wx2.8 ASCII and Unicode, WinXP Turkish)
--
Regards,
Hakki Dogusan
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
wxlua-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxlua-users