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

RE: Encoding problem !!

Subject: RE: Encoding problem !!
From: "SANWAL, ABHISHEK (HP-Houston)" <abhishek.sanwal@xxxxxx>
Date: Thu, 16 Oct 2003 19:46:26 -0500
xsl encoding
I spent around a week on a similar issue. Of course I could not post it
here as it was a .NET MS specific issue not related EXACTLY to W3C-XSL
but nuances of parsers/xsl transformers. (Is that allowed here)

The Xml/Xsl, Text.Encoding and String & MemoryStream objects under .NET
have certain peculiarities where when I start with a UTF-8 document
(using XMLSpy for development) and translate I get a UTF-8 HTML.

When I run it through the .NET code the output is UTF-16.
Then when I reload some XML using string objects it is again UTF-16.

So I tried to enforce UTF-8 everywhere and had some luck and then had
more issues as listed below.

Some of the objects you cannot re-define or specify an ENODING
ie. The Encoding property is read-only. WHY? GO figure.
http://weblogs.asp.net/rmclaws/posts/22080.aspx

I did the same as the link and ensure that everything was UTF-8.

I hope that helps.

Abhishek Sanwal
HP - Houston Campus
abhishek.sanwal@xxxxxx

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Dipesh
Khakhkhar
Sent: Thursday, October 16, 2003 9:49 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Encoding problem !!

Hi,

I am having one xsl in which I have mentioned the ouput format as

<xsl:output method="text" encoding="ISO-8859-1"/>

When i ran my input file using msxsl processor it gave me error like
"Unable to save character to ISO-8859-1 encoding.

When i ran the same on the processor used by XML Spy it worked well and
gave 
me output without error.

Which type of character will be most efficently used across cross
platform.

Can someone please throw lights on this issue. 
Thanks in the anticipation that i will get chance to increase my
knowledge in 
this area.

Regards,
Dipesh


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.