Re: [wxlua-users] wxString::ToAscii

2015-03-05 Thread Victor Bombi
Yes this works because we have lua_str="\195\160" UTF8 code for à but I would like to open a plain ASCii file in which à is coded as 0xE0 in my locale and then wx_str = wx.wxString(lua_str, wxFONTENCODING_ISO8859_1) (or something similar) to get it converted to UNICODE - Original Message -

Re: [wxlua-users] wxString::ToAscii

2015-03-05 Thread John Labenski
On Thu, Mar 5, 2015 at 12:11 PM, Victor Bombi wrote: > > > >What do you plan to do with this wxString? You won't be able to display it > >in the GUI since the high ASCII chars usually just show up as boxes not as > >the DOS smiley faces and whatnot. I recommend sanitizing the string for > >displa

Re: [wxlua-users] wxString::ToAscii

2015-03-05 Thread Victor Bombi
>What do you plan to do with this wxString? You won't be able to display it >in the GUI since the high ASCII chars usually just show up as boxes not as >the DOS smiley faces and whatnot. I recommend sanitizing the string for >display by replacing the extended ascii and controls chars with '?'