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

Re: •

Subject: Re: •
From: Greg Martel <gregm@xxxxxxxxxxx>
Date: Sat, 8 Jun 2002 14:39:50 -0500 (CDT)
html encoding 8226
OK-Thanks again guys, even though I didn't explain what I wanted very
well, you've given me a couple answers and equally importantly, some
viable
solutions. (Not having a background in programming, html or anything
closely related puts me at a bit of a disadvantage sometimes. Thanks for
being patient.)




On Sat, 8 Jun 2002, Mike Brown wrote:

> Greg Martel wrote:
> > which displays like this "⤢".
>
> This is a FAQ.
>
> Those are probably the correct 3 bytes for the character you wanted, in the
> utf-8 encoding. utf-8 uses 1 to 4 bytes to represent the 1.1 million
> characters in Unicode. If your editor or terminal or whatever viewing
> environment you're using to look at the source is showing you 3 characters for
> those 3 bytes, instead of the 1 character you wanted, then the problem is that
> your viewing environment is expecting a single-byte encoding, not utf-8.
>
> Fixing this is a matter of using a smarter editor, or if you're looking at it
> in a browser, making sure that your HTML contains (or is served with) the
> correct encoding declaration and that your browser is configured to honor this
> declaration. Typically, it should look like
>   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
> in the document's <head>.
>
> Your other option, to get the output you were hoping for, is to use
> <xsl:output method="html" encoding="us-ascii"/> to force your XSLT processor
> to write character references (since that character is not available in
> us-ascii).
>
> As Julian has been saying, how you write the character on the input side
> (source XML or stylesheet) is essentially an arbitrary lexical decision that
> is completely obscured once the document is parsed. You must understand that
> XSLT is not an exercise in serially pasting together strings that are copied
> from raw XML files.
>
>    - Mike
> ____________________________________________________________________________
>   mike j. brown                   |  xml/xslt: http://skew.org/xml/
>   denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/
>
>  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.