Hi, I would suppose that because you are using a non valid encoding value, the parser uses the one you've selected in the stylesheet.
These are my two cents. -Hugo -----Original Message----- From: Fitzgerald, Graeme [mailto:[EMAIL PROTECTED] Sent: Mittwoch, 10. M�rz 2004 17:28 To: '[EMAIL PROTECTED]' Subject: Transformer encoding nonsense I am using javax.xml.transform.Transformer to write some XML that contains the Trade Mark sign. I want to write the TM out as HTML character entity ™ which does not happen since my default encoding is UTF-8. When I use javax.xml.transform.Transformer.setOutputProperty(OutputKeys.ENCODING, "UCS") i get what i want ( ™ in the output file). The trouble is that if I use javax.xml.transform.Transformer.setOutputProperty(OutputKeys.ENCODING, "abcxyz") ,i.e a nonsense encoding, I still get what i want. Does anyone know why the nonsense encoding works for me? Thanks, Graeme
