I'm trying to run an XSLT change, but the letters like 'Aoi' are literally '?' In output (I checked with hex editor). The source file contains the correct characters, and in the stylesheet:
& lt; Xsl: output encoding = "UTF-8" indent = "yes" method = "xml" />
What else am I missing?
I am using saxon as a transformer, if it counts.
The problem is most likely the way you call the transformer. My guess is that this will work fine if you say it using java -jar saxon.jar ...
when you use the XML tool If you use InputStream / OutputStream, the device will ensure that the encoding is correct.
When you use a mixture of streams and Writers, you will need to make sure that when you make the XSLT output processor always set the encoding explicitly defaults, but when the encoding When it comes to them, they are not wrong, they are not wrong.
Comments
Post a Comment