Delphi 6 Ent with Update 2: I'm using the TXSLPageProducer component to transform an XML document that starts with this declaration:
<?xml version="1.0" encoding="UTF-8"?>
...together with an XSLT file that begins
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="user" exclude-result-prefixes="msxsl user">
<xsl:output method="xml" version="4.0" encoding="UTF-8" indent="yes" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
...and the resulting HTML document always comes out
<?xml version="1.0" encoding="UTF-16"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
I set the .Encoding property of both XSLPageProducer, and XMLDocument components to 'UTF-8' prior to retrieving the resulting
'Content'. Can anyone explain why this is happening, and what I ought to change to stop it from happening?
Very many thanks in advance
All the best,
Jeff Rafter
http://jeffrafter.com
Web Hosting Sponsor
http://www.defined.net
Many thanks for your VERY prompt reply! Appreciate the advice, I'll go Googling and see what I can find
"Jeff Rafter" <n...@no.com> wrote in message news:410ae0d1$1...@newsgroups.borland.com...
Heh, I was posting a response to Eddie's question and saw yours so I tried
to shoot a quick answer. Here are a couple of those links in case you didn't
find them.
> Hello newsgroup
>
> Delphi 6 Ent with Update 2: I'm using the TXSLPageProducer component to transform an XML document that starts with this declaration:
I can't find this component in my D6 Ent.
Where is it located?
Cheers,
Andrew
Err... found :-)
Andrew
"Jeff Rafter" <n...@no.com> wrote in message news:410b3909$1...@newsgroups.borland.com...