public void setEncoding(String encoding) {
        this.encoding = Charset.forName(encoding);
    }
Set the encoding used by this serializer.

@param encoding the encoding to use, passing in {@code null} results in the
 default encoding (UTF-8) being set.
jme3-plugins/src/xml/java/com/jme3/export/xml/DOMSerializer.java