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

Re: UTF-8 to ASCII encoding problem

Subject: Re: UTF-8 to ASCII encoding problem
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 19 May 2005 16:17:22 +0100
utf 8 to ascii
  I receive documents in UTF-8 which may contain pound signs correctly
  encoded as &163;. I need to style these into ASCII and so my style sheet
  defines the output encoding -   <xsl:output method="xml" indent="yes"
  encoding="ISO-8859-1"/>. 

That's latin1 not ascii
(ASCII is for people who think that "pound" means "#" and does not
include a pound (sterling) symbol.)

  the sequence EF BF BD 

Sounds like a bug but you may be able to use
 encoding="US-ASCII"/>
so that the output really is ASCII, then pound signs will be output as
as a character reference such as &#A3; which may work better.

So long as your input file isn't being corrupted when moving between
systems.

For example your mail has the line

on two platforms  one Windows,

which looks like

on two platforms \226 one Windows,

on my email reader which displays unprintable characters in octal.
octal 226 is byte 150 which is a non printing control character in
iso-8859-1 (I believe it may be something else in a windows code page)

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.