Subject: Re: [xsl] • From: Greg Martel <gregm@xxxxxxxxxxx> Date: Sat, 8 Jun 2002 14:39:50 -0500 (CDT) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] •, Mike Brown | Thread | Re: [xsl] •, David Carlisle |
Re: [xsl] •, David Carlisle | Date | [xsl] XSL Including, Joel Konkle-Parker |
Month |