Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2016-01-22 Thread PICCORO McKAY Lenz
now i tested fully the hardware, the char non-printable and not definitive in the extended ASCII table that i got *was a garbage*.. my parner must made a complete function to remove it .. i talk at the manufacturer but there's no response.. seems like that any guindow-like made hardware are fully

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Fabien Bodard
Thank you Bruce :-)... It was really interresting. We can't figure out how the world was so different and so identical at the same time. Ascii is old, control sequences too, but they are also always the underlying tools used on our modern systems and programs. Oups i've forgotten DEL ... yes asc

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread adamn...@gmail.com
On Tue, 29 Dec 2015 15:07:53 -0500 Stephen wrote: > On 12/29/2015 10:54 AM, Fabien Bodard wrote: > > To resume ... in the old past of ascii all standart printer or monitor > > can manage ascii and print 32 to 127 chars. So Ansi C provide a > > standart function named IsPrint that allow to say if

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread adamn...@gmail.com
On Tue, 29 Dec 2015 16:54:29 +0100 Fabien Bodard wrote: > To resume ... in the old past of ascii all standart printer or monitor > can manage ascii and print 32 to 127 chars. So Ansi C provide a > standart function named IsPrint that allow to say if a char was able > to be printed. > > IN 2015..

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Stephen
On 12/29/2015 10:54 AM, Fabien Bodard wrote: > To resume ... in the old past of ascii all standart printer or monitor > can manage ascii and print 32 to 127 chars. So Ansi C provide a > standart function named IsPrint that allow to say if a char was able > to be printed. > > IN 2015... Ascii is kno

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Fabien Bodard
To resume ... in the old past of ascii all standart printer or monitor can manage ascii and print 32 to 127 chars. So Ansi C provide a standart function named IsPrint that allow to say if a char was able to be printed. IN 2015... Ascii is known in it's 8 bit format so printable chars are from 32 t

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Fabien Bodard
But is print just take into account the old asci table 2015-12-29 16:35 GMT+01:00 ML : > All, > > I might be utterly wrong, but since Linux normally uses UTF-8, any > high-bit-set char may be interpreted as one of the "multibyte char" flags. > If isprint() takes this into account, then it's dead

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread ML
All, I might be utterly wrong, but since Linux normally uses UTF-8, any high-bit-set char may be interpreted as one of the "multibyte char" flags. If isprint() takes this into account, then it's dead right that char by itself is not printable! Hope that helps and makes sense... On 2015-12-29 11:

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Ru Vuott
Tchao Fabien, > Ru ..  Characters > to 127 are printable... uhmmm... excuse me, but I do not understand. If I test the "printability" :-) of "characters > to 127" by using C "isprint()" function (that checks whether the passed character is printable), I obtain only zero results. Where: "ispr

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-29 Thread Fabien Bodard
Ru .. Characters > to 127 are printable... But terminals sometime replace non printable chars by those one 2015-12-29 0:56 GMT+01:00 Ru Vuott : > >> and Ru Vuott thanks for suggestion i'll try later > > > If the string has 2 or more no-printable characters, you have to modify my > code, so: > >

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-28 Thread Ru Vuott
> and Ru Vuott  thanks for suggestion i'll try later If the string has 2 or more no-printable characters, you have to modify my code, so: Public Sub Main() Dim s As String = "ab" & Chr(180) & "cd ef" & Chr(185) & "g" & Chr(195) & "hil" & Chr(179) & " mnop" Dim bb As Byte[] Dim b A

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-28 Thread PICCORO McKAY Lenz
i send you this file with various output, but the special char are not printable, only "gtk critical" warning are out! the out only are in the console of the gambas, later will' run the proyect and send a complete out attached are the file and send a CC to you fabien! 2015-12-23 18:35 GMT-04:30,

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread Ru Vuott
    Wend         s = bb.ToString(0, bb.count)         Print s End * ---- Mer 23/12/15, PICCORO McKAY Lenz ha scritto: Oggetto: Re: [Gamba

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread Ru Vuott
e: [Gambas-user] non printable char "Ⱶ" how to remove from string! A: "mailing list for gambas users" Data: Mercoledì 23 dicembre 2015, 20:14 i resend the char discovered by me, and the returnet by asc 195 and not the same.. in any of the case i workaround u

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread Fabien Bodard
Can you write the output to a file and send it to me ? 2015-12-23 20:14 GMT+01:00 PICCORO McKAY Lenz : > i resend the char discovered by me, and the returnet by asc 195 and not the > same.. > > in any of the case i workaround using predefined constants and removing > "extra" bytes from the string.

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread PICCORO McKAY Lenz
i resend the char discovered by me, and the returnet by asc 195 and not the same.. in any of the case i workaround using predefined constants and removing "extra" bytes from the string.. there's no way to detect that char from a serial device... must be a bug in the printer.. thanks all for help

Re: [Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread Charlie
Have a look at this code, note that the "Ⱶ" character is Chr(195) see here *Public Sub form_Open() Dim sString As String sString = Chr(195) & "Hello World" & Chr(195) Print sString sString = Replace(sString, Chr(195), "") Print sString End* -- View this message in

[Gambas-user] non printable char "Ⱶ" how to remove from string!!!!!

2015-12-23 Thread PICCORO McKAY Lenz
i have a non printable char in a string, that i have to remove: non printable char "Ⱶ" how to remove from string! when i try to print to frontend, got a error asertion failed in gtk when i try to print to console output got a rombo with and "?" inside! how gambas manage this king of chars?