D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] HTML !



On Fri, 20 Sep 2002, Steve Marvell wrote:

On Fri, Sep 20, 2002 at 06:09:16PM +0100, Nick Kew wrote:
On Fri, 20 Sep 2002, Alex Stanley wrote:

&#153;

That's not HTML.  It looks a lot like a Microsoft-ism, though.

Actually, it looks like it to me :)

Nope.  Numeric entities between 128 and 159 are explicitly undefined.
It won't show as TM in (AFAIK) any non-Windows browser unless you have
configured windows-emulation.

Any RiscOS folks around?  AIUI RiscOS has its own meanings for these
undefined entities, and they are *different* from the Windoze-proprietary
characters, so RiscOS users can expect to see something altogether
different again.

two forms:

The syntax "&#D;", where D is a decimal number, refers to the ISO
10646 decimal character number D.

Yep.  So look it up in a Unicode table.


There is another option.  Although &#153; is always wrong, a byte having
the value 153 is perfectly valid if you declare a character encoding
that defines it.  So the byte (but still not the bogus entity reference)
would be valid if you declare your Content-Type as
"text/html; charset=windows-1252".


-- 
Nick Kew


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly