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

Fabien Bodard gambas.fr at ...626...
Tue Dec 29 16:54:29 CET 2015


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 to 255.

Characters lower than 32 are for monitor, modem and printer management.

Thanks to my terminal studie i'm now able to understand all of that :-).

It's really interresting to study the past ...

2015-12-29 16:39 GMT+01:00 Fabien Bodard <gambas.fr at ...626...>:
> But is print just take into account the old asci table
>
>
> 2015-12-29 16:35 GMT+01:00 ML <d4t4full at ...626...>:
>> 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:53, Ru Vuott wrote:
>>> 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: "isprint()" function returns a non-zero value (true) if character is printable, else zero (false) if character is NOT printable.
>>>
>>> *****************************************************
>>> #include <stdio.h>
>>> int main() {
>>>       int i, c;
>>>       for (i=128; i <= 255; ++i) {
>>>               c = isprint(i);
>>>               printf("%d     %d\n", i, c);
>>>       }
>>>    return (0);
>>> }
>>> *****************************************************
>>> So, it seems resulting that "characters > to 127" are NOT printable characters.
>>> Ciao
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> --
> Fabien Bodard



-- 
Fabien Bodard




More information about the User mailing list