The parsing is done by libxml, which is fully standards compliant, so its not possible to make it ignore encoding thats written in the xml passed to it AFAICT. The plugin will need to convert the UTF-8 buffer to the specified encoding, after parsing the xml with libxml to find what it is ... oh :)