al Message -
From: John Labenski
To: wxlua-users@lists.sourceforge.net
Sent: Thursday, March 05, 2015 7:05 PM
Subject: Re: [wxlua-users] wxString::ToAscii
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
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
>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 '?'
On Mon, Mar 2, 2015 at 3:54 AM, Victor Bombi wrote:
> Where I say UNICODE it should be whatever internal widebyte encoding the
> system and wxWidgets is using
>
wxWidgets has recently changed so that the >= 2.9 version always uses utf8
in the wxString.
There's a list of what it accepts in the
Where I say UNICODE it should be whatever internal widebyte encoding the
system and wxWidgets is using
as noted in
http://www.joelonsoftware.com/articles/Unicode.html
the problem is converting from ANSI to UNICODE
wxLua unicode build converts as if the string were UTF8 to UNICODE: return
wxSt
essage -
From: Victor Bombi
To: wxlua-users@lists.sourceforge.net
Sent: Sunday, March 01, 2015 8:37 PM
Subject: Re: [wxlua-users] wxString::ToAscii
the problem is converting from ANSI to UNICODE
wxLua unicode build converts as if the string were UTF8 to UNICODE
it works fr
://docs.wxwidgets.org/trunk/overview_mbconv.html example 1
(or may be ANSI to UNICODE and UNICODE to ANSI)
- Original Message -
From: Paul K
To: wxlua-users@lists.sourceforge.net
Sent: Sunday, March 01, 2015 6:50 PM
Subject: Re: [wxlua-users] wxString::ToAscii
Hi Victor
Hi Victor,
> editor:AddText(wx.wxString(_text):ToUTF8())
>
> only show caracters from 1 to 127 (fails with i=0,255)
>
> With Notepad plus I can convert it (i=0,255) to UTF save to a file and if
If you are trying to convert to/from UTF8, you may want to check this
discussion (http://sourceforge.ne
t;\n")
for i=1,#strwx2 do
io.write(tostring(strwx2:byte(i)))
end
- Original Message -
From: "Victor Bombi"
To:
Sent: Sunday, March 01, 2015 11:56 AM
Subject: Re: [wxlua-users] wxString::ToAscii
> local _text = ""
> for i=1,127 do
> _text = _text .. str
local _text = ""
for i=1,127 do
_text = _text .. string.char(i) .. string.format(" represents %4d\r\n",i)
end
editor:AddText(wx.wxString(_text):ToUTF8())
only show caracters from 1 to 127 (fails with i=0,255)
With Notepad plus I can convert it (i=0,255) to UTF save to a file and if I
open t
10 matches
Mail list logo