@Override
  public final Writable serialize(Object obj, ObjectInspector objInspector)
      throws SerDeException {
    Writable result = doSerialize(obj, objInspector);
    if (!this.charset.equals(Charsets.UTF_8)) {
      result = transformFromUTF8(result);
    }
    return result;
  }
AbstractEncodingAwareSerDe aware the encoding from table properties,
transform data from specified charset to UTF-8 during serialize, and
transform data from UTF-8 to specified charset during deserialize.
serde/src/java/org/apache/hadoop/hive/serde2/AbstractEncodingAwareSerDe.java