The reason why I think the output looks wrong is because I don't believe that string is UTF-8 compliant. Most of the problem we are having is with funny characters such as the nbsp (none breakable space). I thought UTF-8 encoding is suppose to take care of such funny characters by encoding them...
I am trying to encode an xml document I created to be UTF-8 compliant. So far, I keep getting back a string that hasn't been encoded and I am not sure why. Here's part of what I did.
import java.io.*;
import org.w3c.dom.*;
import org.apache.xml.serialize.*;
import...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.