Hi Paul, I thought that in unicode build you could use wxSTC setting codepage to whatever you want :-(
http://www.scintilla.org/ScintillaDoc.html#SCI_SETCODEPAGE in which I (miss)understood that setting it to 0 would allow me to work with ansi victor ----- Original Message ----- From: "Paul K" <paulclin...@yahoo.com> To: <wxlua-users@lists.sourceforge.net> Sent: Friday, December 27, 2013 7:00 PM Subject: Re: [wxlua-users] character 194 > Hi Victor, > >> Also related to this is the fact that if I open a file in editor.wx.lua >> with >> ansi encoding and a symbol with byte 0xE0 for example nothing is shown in >> editor > > If you are running a unicode build (I'm not sure how it works in ansi > builds), then based on my experience wxSTC will not show the content > with invalid UTF8 characters (and your sequence is definitely invalid > UTF8). I have a check in my IDE after loading some content into a > wxSTC control. If #editor:GetText() == 0, I try to "fix" UTF8 content > using this logic: > http://notebook.kulchenko.com/programming/fixing-malformed-utf8-in-lua > > See if something similar works for you. > > Paul > > On Fri, Dec 27, 2013 at 7:20 AM, Victor Bombi <son...@telefonica.net> > wrote: >> Also related to this is the fact that if I open a file in editor.wx.lua >> with >> ansi encoding and a symbol with byte 0xE0 for example nothing is shown in >> editor >> >> ----- Original Message ----- >> From: "Victor Bombi" <son...@telefonica.net> >> To: <wxlua-users@lists.sourceforge.net> >> Sent: Friday, December 27, 2013 3:12 PM >> Subject: Re: [wxlua-users] character 194 >> >> >>> of course it is not a problem with 194 only >>> >>> for i=0,255 do >>> SendtoLog(i,string.char(i)) >>> end >>> >>> only outputs from 0 to 127 >>> >>> ----- Original Message ----- >>> From: "Victor Bombi" <son...@telefonica.net> >>> To: <wxlua-users@lists.sourceforge.net> >>> Sent: Thursday, December 26, 2013 5:39 PM >>> Subject: [wxlua-users] character 194 >>> >>> >>>> Hello, >>>> >>>> trying to post this lua error message to wxStyledTextCtrl: >>>> >>>> loadfile error:C:\LUA\lua2sc\samples\charactererror.lua:4: unexpected >>>> symbol >>>> near '┬' >>>> >>>> with AppendText I dont get any output. >>>> The problem seems to be the character with ASC code 194 >>>> >>>> my test is something like >>>> >>>> errst = >>>> {108,111,97,100,102,105,108,101,32,101,114,114,111,114,58,67,58,92,76,85,65,92,108,117,97, >>>> 50,115,99,92,115,97,109,112,108,101,115,92,99,104,97,114,97,99,116,101,114,101,114,114,111,114,46, >>>> 108,117,97,58,52,58,32,117,110,101,120,112,101,99,116,101,100,32,115,121,109,98,111,108,32,110,101,97,114,32,39,194,39} >>>> SendtoLog(string.char(unpack(errst))) >>>> >>>> May be it is related to character_set or encoding or whatever else >>>> >>>> Any help woould be appreciated >>>> victor >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Rapidly troubleshoot problems before they affect your business. Most IT >>>> organizations don't have a clear picture of how application performance >>>> affects their revenue. With AppDynamics, you get 100% visibility into >>>> your >>>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >>>> AppDynamics >>>> Pro! >>>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> wxlua-users mailing list >>>> wxlua-users@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/wxlua-users >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Rapidly troubleshoot problems before they affect your business. Most IT >>> organizations don't have a clear picture of how application performance >>> affects their revenue. With AppDynamics, you get 100% visibility into >>> your >>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of >>> AppDynamics >>> Pro! >>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> wxlua-users mailing list >>> wxlua-users@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/wxlua-users >>> >> >> >> ------------------------------------------------------------------------------ >> Rapidly troubleshoot problems before they affect your business. Most IT >> organizations don't have a clear picture of how application performance >> affects their revenue. With AppDynamics, you get 100% visibility into >> your >> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics >> Pro! >> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk >> _______________________________________________ >> wxlua-users mailing list >> wxlua-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wxlua-users > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk > _______________________________________________ > wxlua-users mailing list > wxlua-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxlua-users > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users