Forum Moderators: open
Error: reference to non-SGML character
What should I do? Does it matter? It seems to work on many different
browsers.
& # 8212 ; did work.
Apparently the first works with most browsers since it is in the ISO-8859-1; it just isn't SGML.
What about these illegal characters. In most fonts these look like the curly quote marks or smart quotes.
These work with IE and Netscape, but they don't validate.
The best reference I have found for all the HTML character entities is:
[htmlhelp.com...]
which lists them by name, hex form, and decimal form, and shows how each displays in your browser. In general the decimal forms are the most widely supported, but I'm sure there are exceptions here and there.
151 is a control character, thus the validator complains. Where did the dash come from then? Well, windows has an encoding where 151 is an em-dash. If you used that charset, then put a 151 byte in the data, it would be valid. Not a & #151; - an em-dash is always & #8212;
Browser support is widespread for & #151; because it's easier just to do what IE does, even if it is bogus.
Far more than you wanted to know about the issue at [cs.tut.fi...]
(edited by: tedster at 10:39 pm (utc) on Mar. 14, 2002)