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

RE: Encoding problem

Subject: RE: Encoding problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 25 Aug 2005 13:11:07 +0100
encode problem with
> I have a xml with utf-8 encoding, I am parsing that
> xml and then 
> converting it to pdf using FOP.
> While reading the xml file I am providing the encoding
> as windows-1252, 

I suspect that when you say the XML file has "utf-8 encoding", you mean that
it starts with an XML declaration that specifies the encoding as being
utf-8; but that you suspect the encoding is really windows-1252.

Or it could be even worse: perhaps the file started life as windows-1252,
and was then put through an iso-8859-1 to utf-8 conversion. If so you're in
a real mess, and the best hope is to try and reverse the whole process.

First step is to analyze the problem: find one of the "unusual" characters
in the file and tell us (a) what the character is supposed to be, and (b)
the sequence of hex octets used to encode it.

Badly encoded XML files are not really in scope for this list, but since
it's so hard to locate where in the system an encoding problem has its root
cause, we're usually tolerant...

Michael Kay
http://www.saxonica.com/

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.