générer un fichier svg avec le bon encoding
J'ai déjà posté dans le forum xmlrad mais le pb n'est pas résolu.
j'ai un fichier xml avec la géométrie (path au format texte).
j'ai un fichier xsl qui génère le fichier svg à partir de ce xml et commence ainsi :
Code:
1 2 3 4
| <?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink">
<xsl:output method="xml" encoding="ISO-8859-15" standalone="no"/>
.... |
et le fichier généré revient comme ça :
Code:
1 2
| <?xml version="1.0" standalone="no"?>
<svg xml:space="preserve" width="500" height="500" preserveAspectRatio="xMidYMid" viewBox="-46966.65677483485 -45441.65677483485 706062.3135496697 598568.3135496697" xmlns:xlink="http://www.w3.org/1999/xlink"> |
autrement dit, l'encoding se perd dans la nature et le fichier svg envoyé au client ne prend pas encompte les caractères accentués...
Le parseur utilisé est msxml4.
Quelqu'un a-t-il une piste ?