I'm performing a transformation which includes the character entity ● in it.  The resulting transformation is correct and works fine.  However, I then save the resultant XML file to disk for later processing.  When I save it to disk, the ● turns in a question mark ?, which is obviously not the same character.
 
How do I fix the following code to get it to output ● instead of a question mark when the XML is saved to a file?
 
    OutputFormat  format    =
        new OutputFormat(getDocument());   //Serialize DOM
    XMLSerializer serial    = new XMLSerializer(writer, format);
    serial.asDOMSerializer();                          // As a DOM Serializer
    serial.serialize(getDocument());
 
 
Thanks for any help!
Scott

Reply via email to