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

Re: encoding question/problem

Subject: Re: encoding question/problem
From: Nathan Shaw <n8_shaw@xxxxxxxxx>
Date: Thu, 9 May 2002 08:22:33 -0700 (PDT)
explain encoding
Thank you David,

After posting this for the second time (sorry), I
checked around and saw that YAWC was outputting the
intermediate XML doc in UTF-8. I have changed it to
use iso-8859-1 and everything is working well now.

I would still appreciate some links to a few sites
that explain encoding well so that I can try to fully
grok it. 

--Nate


--- David Carlisle <davidc@xxxxxxxxx> wrote:
> 
> > (I apologize if this is a re-post.
> 
> It was,
> 
> and so is this:
> 
> Date: 8 May 2002 17:23:06 +0100
> From: David Carlisle <davidc@xxxxxxxxx>
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> In-reply-to:
> <20020508155324.47337.qmail@xxxxxxxxxxxxxxxxxxxxxx>
> (message from
> 	Nathan Shaw on Wed, 8 May 2002 08:53:24 -0700
> (PDT))
> Subject: Re:  character encoding
> problem/question
> 
> 
> > I am creating xml docs out of MS Word using YAWC,
> and
> > for my single quotes, it is generating ? (
> 
> which is the right thing.
> 
> > I then convert the xml doc I get into
> > another xml doc, which I then convert into XHTML.
> 
> In the last transform, assuming that you are using 
> <xsl:output method="html"
> which is the default method if the top level element
> is <html>
> then many XSLT systems will output this as &rsquo;
> and your problems
> probably go away, but your system appears to  be
> outputting as 
> utf08 (I didn't check the three byte sequence you
> quoted was the correct
> utf8 for this character but chances are it is.)
> 
> If the HTML document is in utf8 and says it is in
> utf8 (by having a
> charset specified in the HTML, something XSLT should
> add automatically)
> then modern browsers should display it correctly.
> 
> If the automatic detection of encoding has failed
> you can push the
> browser by hand (view/encoding menu in IE for
> example).
> 
> Alternatively you can output in some other encoding
> eg
> <xsl:output type="html" encoding="iso-8859-1"/>
> will output in latin-1 which means the system can
> not output this
> character as character data so will use ? or
> &rsquo; or ?
> which mightalso keep your browser happy.
> 
> David
> 
> 
> 
>
_____________________________________________________________________
> This message has been checked for all known viruses
> by Star Internet
> delivered through the MessageLabs Virus Scanning
> Service. For further
> information visit http://www.star.net.uk/stats.asp
> or alternatively call
> Star Internet for details on the Virus Scanning
Service.


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com

 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.