Re: [Gambas-user] Len function not correct?

2012-12-31 Thread Johny Provoost
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

Re: [Gambas-user] Len function not correct?

2012-12-31 Thread Emil Lenngren
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

Re: [Gambas-user] Len function not correct?

2012-12-31 Thread Johny Provoost
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 ë, ú, ê .. >>

Re: [Gambas-user] Len function not correct?

2012-12-31 Thread M. Cs.
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

[Gambas-user] Len function not correct?

2012-12-31 Thread 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.04 QT4 Gambas 3..3.90 , a trunk version from 14 day's ago (don't know the correct number) Happy 2013 Johny --