RE: HTML Entities

by Chuck Evans <Chucke(at)captura.com>

 Date:  Fri, 12 Jan 2001 14:54:36 -0800
 To:  "HWG Techniques (E-mail)" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
Okay, so I'm confused. I borrowed an iMac and tested the Entities page I
made with IE 5.0, NN 6.0, and NN 4.7. The iMac had NO PROBLEMS displaying
the entities, whether in HTML, ASCII or Unicode form, AND it also displayed
all the directly-entered characters (that I put in the HTML using the
ALT+Num method).

The only problem was with NN 4.7 and the HTML entities for ASCII characters
127 - 159. That is counterintuitive to everything I've ever been told about
how Macs display characters.

Have I been lied to all these years?

Chuck Evans
Captura, Inc. 
(425) 803-6455 
http://www.captura.com

-----Original Message-----
From: Chuck Evans [mailto:Chucke(at)captura.com]

About a week ago, I and others on this list had questions about the correct
entities to use for particular characters in HTML. I was particularly
interested in whether ASCII-numeric entities, such as &#0153; (trademark)
are supported in different browsers, and in particular, on Macs.

The challenge comes with ASCII numbers 128 through 159 (where lots of useful
symbols are, such as the trademark, euro, bullet, en dash, and em dash). The
ASCII entities don't show up on Macs. But the HTML entities (&ndash; &mdash;
and &trade;) don't show up in NN 4.x or 3.x browsers. So there is a tradeoff
to be made if you (like me) still want to use those characters. Who do you
piss off? Mac users or NN 4.x users?

Add to this the third possibility of not using entities at all, but
inserting the actual characters (on a PC) using the ALT+ASCII Number (hold
down alt and type the number -- all four digits -- on the numeric keypad
with numlock on). How do THOSE characters show up on Macs? (They all show up
fine in all the browsers I've tested on Windows.)

And then, of course, there's the whole UniCode system (&#x???? using hex
numbers).

To answer my own questions, I put together a big table of entities at
http://www.chucke.com/entities.html. I couldn't find one elsewhere that
showed the UniCode entities and ALT+NUM characters side by side with the
other entities. So I combined a good Entity table I found with some UniCode
data (see refs on the page).

I'm going to go find a Mac in our company (we have a few for testing) and
check out the characters. I welcome anyone else as perplexed as me to head
there as well.

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.