## XmlValidatingReader::get_Encoding method


Returns the encoding attribute for the document.

```cpp
SharedPtr<System::Text::Encoding> System::Xml::XmlValidatingReader::get_Encoding()
```


### ReturnValue

The encoding value. If no encoding attribute exists, and there is not byte-order mark, this defaults to UTF-8.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Encoding](../../../system.text/encoding/)
* Class [XmlValidatingReader](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
