Subject: [xsl] HTTP-Header charset different to charset encoding statement in XML-Declaration From: Bartolomeo Nicolotti <bnicolotti@xxxxxxxxx> Date: Fri, 12 Mar 2010 14:44:45 +0100 |
Hello, only a quick question. I've to handle xml in the body of an HTTP response. The problem is that http header can specify an encoding different from the processing instruction, like here: HTTP-Header: Content-Type: application/xhtml+xml; charset=UTF-8 1: <?xml version="1.0" encoding="ISO-8859-1"?> 2: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 3: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4: 5: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de"> 6: <head> 7: <title>HTTP != XML</title> 8: </head> 9: <body>C$C6C<CCCC</body> 10: </html> Which encoding has precedence? The http header or the processing instruction? Many thanks Best regards Bartolomeo Nicolotti
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] import, xslt 2.1, Dave Pawson | Thread | Re: [xsl] HTTP-Header charset diffe, Jacobus Reyneke |
Re: [xsl] import, xslt 2.1, Dave Pawson | Date | RE: [xsl] import, xslt 2.1, Michael Kay |
Month |