It returns 2 because it takes 2 bytes to represent that character in UTF-8. Binary variables operate on bytes, not characters.

You can use $len($bvar(&x,1-).text) if you want to know the number of characters it contains (and the binvar contains valid UTF-8 of course).

Last edited by starbucks_mafia; 20/03/11 10:27 PM.

Spelling mistakes, grammatical errors, and stupid comments are intentional.