Thank you for the info, and to everyone a happy 2013
Johny
Op 31-12-12 13:56, Emil Lenngren schreef:
> The Len function counts the number of bytes in the string. Strings are
> always in UTF-8, so é is two bytes. String.Len counts the number of
> characters.
>
> 2012/12/31 Johny Provoost
>
>> Th
The Len function counts the number of bytes in the string. Strings are
always in UTF-8, so é is two bytes. String.Len counts the number of
characters.
2012/12/31 Johny Provoost
> Thank you, that's working.
>
> Johny
>
> Op 31-12-12 12:28, M. Cs. schreef:
> > Use String.Len() instead if you plan
Thank you, that's working.
Johny
Op 31-12-12 12:28, M. Cs. schreef:
> Use String.Len() instead if you plan to use non ASCII characters. The é is
> theproblem for Len().
>
> 2012/12/31 Johny Provoost
>
>> Why is Len("Andre") = 5, and Len("André") = 6?
>> The same for words with ë, ú, ê ..
>>
Use String.Len() instead if you plan to use non ASCII characters. The é is
theproblem for Len().
2012/12/31 Johny Provoost
> Why is Len("Andre") = 5, and Len("André") = 6?
> The same for words with ë, ú, ê ..
> Is there's a particular reason for that, or is it a bug?
>
> Working in Ubuntu 12
Why is Len("Andre") = 5, and Len("André") = 6?
The same for words with ë, ú, ê ..
Is there's a particular reason for that, or is it a bug?
Working in Ubuntu 12.04
QT4
Gambas 3..3.90 , a trunk version from 14 day's ago (don't know the
correct number)
Happy 2013
Johny
--
Simonart Dominique schrieb:
> Hi,
>
> Len() function is based on one-byte character, but some
> characters need 2 bytes code, like the german's you mentionned.
>
> Use the String class methods and all will works as you expected
>
> HTH
> Dominique Simonart
>
> Norarg a écrit :
>
>> hi,
>>
>> I
Hi,
Len() function is based on one-byte character, but some
characters need 2 bytes code, like the german's you mentionned.
Use the String class methods and all will works as you expected
HTH
Dominique Simonart
Norarg a écrit :
> hi,
>
> I get a bit strange results from the LEN()-function.
>
hi,
I get a bit strange results from the LEN()-function.
If there are characters like the German Umlaute in the string (äöüÄÖÜß),
the result just does not fit. It seems to me, that LEN("ä") gives back 2
instead of 1,
is this possible?
I fill up a string with spaces for a more (or less) formatted