method

encoding

ruby latest stable - Class: REXML::Document
encoding()
public

@return the XMLDecl encoding of this document as an Encoding object. If no XMLDecl has been set, returns the default encoding.