There are two types of XML encoding errors:
1. An invalid character was found in text content.
2. Switching from current encoding to specified encoding not supported.
These errors occur because XML document can contain non ASCII characters like Norwegian and French. These errors can be avoided by specifying the XML encoding Unicode.