encoder.onUnmappableCharacter(CodingErrorAction.REPLACE);
outputBuffer = CharBuffer.allocate(BUFFER_SIZE);
encodingName = EncodingHelper.getOldCanonical(cs.name()); */
String encoding = cs.name();
if (!setEncType(encoding))
throw new UnsupportedCharsetException(encoding);
}