[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

SV: output encoding problem (can't get UTF-8)

Subject: SV: output encoding problem (can't get UTF-8)
From: "Gabriel K" <gabriel.klappenbach@xxxxxxxxxxxx>
Date: Sun, 7 Aug 2005 10:32:26 +0200
ie encoding problem
I have only set the output element in the outmost stylesheet (this
stylesheet matches "/"). Perhaps I need to set output in all stylesheets
equal? However, UTF-8 is standard output, so only attribute left that could
make a difference would be method= HTML and media-type = text/HTML.

The output element is:
<xsl:output method="html" media-type="text/html" encoding="UTF-8"
indent="no" omit-xml-declaration="yes" doctype-public="-//W3C//DTD HTML
4.01//EN" doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>

I also want to point out that I using an XML read directly from disk (via
document() function), and the E D V characters transformed from that
document look fine when viewed with UTF-8.
The E D V characters I receive from the COM-object (which is the main
transformation document), are screwed up as described earlier.
No matter what encoding I choose in the browser (or with auto detection
which chooses UTF-8 it seems), I can't get proper looking characters for E D
V.
(And of course, if I choose another encoding than UTF-8, the characters from
the static XML-file read with document() are screwed up.)

I'm using IE 6 and firefox 1.04.

If I save the XML I get from the COM-object, and transform it with the same
stylesheet in XMLSPY (it uses MSXML 3 or 4, automatic detection), everything
looks terrific.
So... could it be that the problem arises in the ASP-file, when I use the
IXSLProcessor?

Thanks for sticking with me. :)
If you have any more questions please just ask.

/Gabriel



> -----Ursprungligt meddelande-----
> Fren: Joe Fawcett [mailto:joefawcett@xxxxxxxxxxx]
> Skickat: den 6 augusti 2005 12:24
> Till: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Dmne: Re:  output encoding problem (can't get UTF-8)
>
> ----- Original Message -----
> From: "Gabriel K" <gabriel.klappenbach@xxxxxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Saturday, August 06, 2005 11:11 AM
> Subject: SV:  output encoding problem (can't get UTF-8)
>
>
> That's what I'm thinking too, but the output has screwed up E D V in all
> places, not just links. Very weird. I can't think of why this would
> happen.
> :/
>
> /Gabriel
>
> Running short on ideas now. Are all your stylesheet xsl:outputs set
> correctly?
> Is IE set to auto-select? Which version of IE are you using and does the
> page
> show correctloy in other browsers?
>
> --
>
> Joe

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.