title: How to count characters in a unicode string (Hindi / Marathi) in android
body: <p>I have an EditText to get description and want to set max length 145 chars.
  I have set maxlength 145 in XML. This works correctly for English.
  But for languages other than English, being specific, Marathi, Hindi etc it doesn't work properly. I counts each symbol as separate character.</p>
  
  <p>For example: "व्ही" </p>
  
  <p>this is considered as one character in Hindi, and it's length should be 1, but it returns me length 2.</p>
  
  <p>I have seen the solution in <a href="https://stackoverflow.com/questions/12739648/number-of-characters-in-java-string">this link</a></p>
  
  <p>But it doesn't work for Hindi/Marathi language because it cannot detect connected characters. How to detect connected characters?</p>
  
  <p>Thanks in advance :)</p>