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

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


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




More information about the User mailing list