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

Display of character 0x96 (#150) in IE, Firefox and Safari on Windows an

  • To: xml-dev@l...
  • Subject: Display of character 0x96 (#150) in IE, Firefox and Safari on Windows and Mac
  • From: "andrew welch" <andrew.j.welch@g...>
  • Date: Fri, 21 Apr 2006 09:37:03 +0100
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=DJdopsdLwzkV0tKRycERQL2Xtvse4VFhBRiQVTn+S3F+uYD2S2FqKcPJpBwT0pnegM91P3W9E76JWiIigVlRQETlbpw9LnO7a0F2iGbv+3M1RnWALsupA8urd2lGeZ43P0f1QvO8aC7tPbD2MyYrKE9U604KSsOrotGXqbnFTJM=

safari for windows
This file:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>test char 150</title>
</head>
<body>
<p>x&#150;x</p>
<p>Should see xx and not x dash x</p>
</body>
</html>

Displays as x dash x (x-x) on both Windows and Mac, using IE, Firefox
and Safari.

If I've read it correctly, character 0x96 (#150) is only ever a dash
in Windows-1252 (ANSI) whereas in Unicode it's a non-displayed control
character.

In the XML spec it states that the parser must only resolve character
references using Unicode - so why do the browsers render #150 as a
dash?

I could understand IE doing it (always using a HTML parser), but not
Firefox which (afaik) parses XHTML pages with an XML parser. Is it
that the use of ANSI is so widespread that the browsers knowingly
break the spec and render them anyway (again, something I wouldnt have
thought of FF)

The reason for the question is that I intended raise this as a bug and
get the app that saved out #150 to use #8211 instead - but at the
moment it seems like #150 always gets rendered as a dash by browsers
on both platforms, so there's very little reason to get it changed.

thanks
andrew

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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.