SyntaxFix
Write A Post
Hire A Developer
Questions
I was getting the xml as a String and using xml.getBytes() and getting this error. Changing to xml.getBytes(Charset.forName("UTF-8")) worked for me.