This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
Hi, I'm trying to find the number of chars (letters) in a word that is in UTF-8 format - not the number of bytes. String.length() returns the length in UTF-16 format. For most words the simple String.length() works, but for example: String s = "文書の場合"; The length (s.length()) is 9.
I using the String constructer String(byte�bytes, String�charsetName), but the length method is still UTF-16.