title: Android EditText maxLenght counting UTF-8 encoded characters
body: <p>I need to set <code>maxLenght</code> attribute to my Android <code>EditText</code>, considering all UTF-8 characters. If i use <code>maxLenght</code> xml attribute or <code>InputFilter.LenghtFilter</code> programmatically, the limit result is not what i need.</p>
  
  <p>Before sending <code>EditText</code> text to my server API, i encode it using:</p>
  
  <pre><code>String encoded = URLEncoder.encode(EditText.getText(), "utf-8");
  </code></pre>
  
  <p>My constant limit value is 1000 and when user types some special characters as emoticons, they seem to be considered as one letter. I'd like to set <code>maxLenght</code> according UTF-8 encoded <code>String</code>.</p>
  
  <p>I tried to make some logic using <code>TextWatcher</code>, maybe is the right approach but i didn't have success.</p>