[Gambas-user] An utility component for Gambas

Benoît Minisini gambas at ...1...
Mon Dec 1 23:07:29 CET 2014


Le 01/12/2014 23:03, Charlie Reinl a écrit :
> Am Montag, den 01.12.2014, 15:54 -0600 schrieb Lewis Balentine:
>>>> Removing accents from an UTF-8 string.<<
>> H'mmmm ..... Plan "A" is a loser.
>>
>> it seems the instr() function does not like accented characters:
>> P = InStr("Ũ", "ŷŶũŨẽẼĩĨòåš")
>> Result: P=0
>>
> Salut Lewis,
>
> for UTF-8 use "String." to deal with accented characters.
>
>

...and read the documentation of InStr carefully again.

-- 
Benoît Minisini




More information about the User mailing list