The first clue is that there are two characters references being created for each extended character. That makes me believe that your input document is being decoded using a single byte character set, when it is in fact encoded with a character set that includes multiple byte characters.
I reproduced what you are seeing by saving an xml file as utf-8, but putting IS0-8895-1 in the xml processing instruction. You haven't shown us the xml that you are using, so this is just an educated guess, but try either saving the file as ISO-8859-1, or changing the encoding in the xml processing instruction in your xml file (not the xsl file) to utf-8. Josh -----Original Message----- From: michael UIN [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 12:26 PM To: [EMAIL PROTECTED] Subject: Foreign characters When I use stylesheet that I process with XALAN 2.3.1 that has foreign characters ñ ê ó ñ they are escaped as ñ ê ó ñ which is not correct !?!?!!.... What am I doing wrong ? I've tried setting the outputProperty in the Java code..... transformer.setOutputProperty(OutputKeys.ENCODING,"ISO-8589-1"); transformer.transform(xmlSource, new javax.xml.transform.stream.StreamResult(myFileW)); as well in the XSL code..... <?xml version="1.0" encoding="ISO-8859-1" ?> <xsl:output method="html" version="1.0" indent="yes" encoding="ISO-8859-1" media-type="text/html"/> I've also tried setting the encoding in java to UTF-16 with no luck. Why is it escaping them incorrectly ??? Any ideas ? Thanks in advance! ============== XSL Snippet ============= <b>Data is escaped</b>.....<xsl:value-of select='/DOCUMENT/DATA/INTL/ROW/name' /> <br/><br/><b>Data is NOT escaped</b>..... <xsl:value-of select='/DOCUMENT/DATA/INTL/ROW/name' disable-output-escaping="yes"/> ============= HTML OUTPUT ============= <b>Data is escaped</b>.....ñ ê ó ñ &<br> <b>Data is NOT escaped</b>..... ñ ê ó ñ &</body> _________________________________________________________________ Take advantage of our limited-time introductory offer for dial-up Internet access. http://join.msn.com/?page=dept/dialup