I need some help.
How can I list files starting with p or f and with the exact length of 3 characters?
I am trying to find out a string length when the string is stored in UTF-8.
I tried following approach:
Charset UTF8_CHARSET = Charset.forName("UTF-8");
byte abc = password.getBytes(UTF8_CHARSET);
int length = abc.length;
This gives me length of the byte array, but not number of characters in the string.
I found a website which shows both UTF-8 string length and byte length.
I'm doing a little script to rename some files.