Message
This encoding is not mandated by the XML specification: foo
Explanation
The XML specification requires XML processors to support two encodings: UTF-8 and UTF-16. Although most will support many more, any compliant processor must support these two.
Solution
For standards-guaranteed compatibility, use either UTF-8 or UTF-16 to encode your XML.
Not clear? Disagree?
You might be able to find help in one of these fine resources.