Page 1 of 1

How to change xml encoding to iso-8859-1 using xslt

Posted: Fri Mar 03, 2006 4:42 pm
by matthew.wicks
I would like to be able to change the xml encoding value of the output of my style sheet from "UTF-8" to "iso-8859-1". I have tried changing the header of the xsl sheet and the source xml sheet but all output seems to be in UTF-8 format.

I need to be able to accept multiple encodings then with the style sheet change the encodings to "iso-8859-1"

Thanks,
Matthew

Posted: Mon Mar 06, 2006 3:04 pm
by sorin_ristache
Hello,

Use

Code: Select all

<xsl:output encoding="ISO-8859-1"/>

in your stylesheet.

Regards,
Sorin