@Override
  public int getCharacterLength() {
    String strippedValue = getStrippedValue();
    return strippedValue.codePointCount(0, strippedValue.length());
  }
Set char value, padding or truncating the value to the size of len parameter.
common/src/java/org/apache/hadoop/hive/common/type/HiveChar.java