I am trying to count Unicode characters like Arabic or Chinese in a edittext. I manage to count normal characters using this example: https://stackoverflow.com/a/9867992/1282492
Ik wil normale tekens beperken tot 160 en Unicode-tekens tot 80, is er hoe dan ook ik kan dit doen?
HINT : you can do this by converting the text into bytes
dus 160 Engelse tekens = 160 bytes
en 80 Unicode-tekens = 160 bytes