[Gambas-user] String Functions give different values at cyrillic / not-cyrillic

Tobias Boege taboege at ...626...
Mon Apr 28 16:23:07 CEST 2014


On Mon, 28 Apr 2014, abbat81 wrote:
> Print Len("iiiiiiiiii") ' not cyrillic
> Print Len("????????????????????") ' cyrillic
> 
> >10
> >20
> 
> How can I get correct value with cyrillic symbols?
> Thanks
> 

Use String.Len() which can deal with UTF-8 characters.

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list