I have some operations to do on an XML files (nothing important) and XSL applies very well in this case. However, my input file is encoded in UTF-8 and the file after the transf
Do you have
<xsl:output encoding="iso-8859-1" />
in place?
Because that should be all you need, really. If your XSL processor does not correctly translate characters to the target encoding on its own, it is broken and you need to use a different one.
Hints
Windows-1252
is what people really mean when they say ISO-8859-1
. Check closely if that applies to you as well. There are subtle differences between the two (especially with regard to the Euro sign, which does not exist in ISO-8859-1
, but does exist in Windows-1252
and ISO-8859-15
).<?xml version="1.0" encoding="iso-8859-1"?>
is missing in an XML file, UTF-8 encoding is assumed. Be sure to put a declaration on top of your file whenever is not UTF-8 encoded.