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

Stephen sbungay at ...3301...
Tue Dec 29 21:07:53 CET 2015


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 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 ...
>
   It's more interesting to have LIVED it and now be working with UTF-8.
ASCII was SOOO simple, but also SOOOO restrictive.

> 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
>
>


-- 
Kindest Regards
Stephen A. Bungay, Prop.
Smarts On Site Information Systems





More information about the User mailing list