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

character encodings

Subject: character encodings
From: Pam Huntley <phuntley@xxxxxxxxxx>
Date: Thu, 21 Nov 2002 16:46:09 -0500
pam huntley



Hi,

So, I read through the FAQ, and I'm still a bit confused about character
encodings.   I'm having a problem where my XML file is in utf-8 (and has
english characters in it), but my XSL file has DBCS characters in it, and
although I saved it as UTF-8, I don't really know what the encoding is (I
think for japanese it's ms_kanji, big5 for chinese).  When I go to
transform using the microsoft msxml stuff, I get an error saying the XSL
does not contain a document element.  However, if I use the exact same XSL,
only the untranslated version (or any single byte version), saved as utf-8,
it works.

I got the strings translated, and they came back in an ANSI file.  I
couldn't send the XSL off to be translated because our translation centers
don't really know what to do with it.  Then I used a program to go replace
the strings back where they belong in the XSL.  So, for single byte
languages, I save the resultant XSL in utf-8 and everyone is happy.   But
for the DBCS languages, even if I save the resulting file in utf-8, I get
the error.

I don't have any control over the XML file - it comes from a server, and I
just save it to a file.  Is there some way to make the XSL work, even if it
is not utf-8?

I'm really new to XSL/XML programming, and I didn't see any way to specify
the document encoding for the xsl...  any help would really be appreciated.

Thanks!

Pam


 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.