XML documents can contain non ASCII characters, like Norwegian æ ø å , or French ê è é which introduce errors.
There is two types of xml-encoding-error are:
An invalid character was found in text content.
Switch from current encoding to specified encoding not supported.
You can avoid these errors by specifying the XML encoding Unicode.