Android Question Byte Count ?

tufanv

Expert
Licensed User
Longtime User
Hello,

I have a question. Please check this url:
https://mothereff.in/byte-counter

if you type ÜRN1 ( with turkish charachter U with dots , you can just copy paste ) it says it is : 4 chars but 5 bytes. The dots change the byte value.

I was using in my app for the string :"Ürün1"
string.length to find the length but i realized that what i need is the byte length. How can i calculate the byte length of Ürün1 string for example ?

TY
 
Top