encoding problem

T

Tjerk Wolterink

i output my xsl files in ISO-8859-1
and the xml files are also in ISO-8859-1

in an xml file i have the entity: ö

But after a number of xsl transformations
i get the following in the output document: ö

It should be an o umluat,

it has something to do with encoding, but i have
set the encoding everywhere
wat can be the problem?
 
M

Martin Honnen

Tjerk said:
i output my xsl files in ISO-8859-1
and the xml files are also in ISO-8859-1

in an xml file i have the entity: ö

That is not an entity, it is a character reference.
But after a number of xsl transformations
i get the following in the output document: ö

That is what you get when the two bytes used to encode an 'ö' in UTF-8
are then interpreted as ISO-8859-1.
So it might be that your XSLT transformation result is serialized as
UTF-8 but the application you use to view the serialized result thinks
the stuff is ISO-8859-1 encoded.
it has something to do with encoding, but i have
set the encoding everywhere
wat can be the problem?

You need to provide more information, which processor do you use, how do
you run that transformation (e.g. from the command line or using an
API), what kind of output is created (e.g a file, or perhaps a HTTP
response body sent to a browser), how do you view the output.
For instance if the result of the transformation is sent to a browser
then you can set the charset parameter in the HTTP Content-Type response
header.
Of course if the whole procedure is processor dependant it might be
easier to ask on a mailing list devoted to the particular processor. But
you can try here but you need to provide more information for anyone
being able to help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top