Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > encoding problem

Reply
Thread Tools

encoding problem

 
 
Tjerk Wolterink
Guest
Posts: n/a
 
      07-14-2005
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?
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      07-14-2005


Tjerk Wolterink wrote:

> 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.

--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
encoding problem with BeautifulSoup - problem when writing parsedtext to file Greg Python 9 10-08-2011 03:30 PM
Reading Text File Encoding and converting to Perls internal UTF-8 encoding sln@netherlands.com Perl Misc 2 04-17-2009 11:22 PM
changing JVM encoding; setting -Dfile.encoding doesn't work pasmol@plusnet.pl Java 1 10-08-2004 09:50 PM
Encoding.Default and Encoding.UTF8 Hardy Wang ASP .Net 5 06-09-2004 04:04 PM
Problem encoding/decoding image Slade ASP .Net 1 06-25-2003 09:28 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57