Sp 139

From Htmlpedia
Revision as of 12:20, 10 November 2007 by Mgueury (talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

OpenSP: Non SGML character number ...


You have used an illegal character in your text. This is commonly caused by pasting text from word processors into HTML documents - the "curly quotes" are not part of the HTML character set.

HTML uses the standard UNICODE Consortium character repertoire, and it leaves undefined (among others) 65 character codes (0 to 31 inclusive and 127 to 159 inclusive) that are sometimes used for typographical quote marks and similar in proprietary character sets. The validator has found one of these undefined characters in your document. The character may appear on your browser as a curly quote, or a trademark symbol, or some other fancy glyph; on a different computer, however, it will likely appear as a completely different character, or nothing at all.

This error can also be triggered by invisible formatting characters embedded in documents by some word processors. If you use a word processor to edit your HTML documents, be sure to use the "Save as ASCII" or similar command to save the document without formatting information.


Bad<p>“But I don’t want to go among mad people,” Alice remarked.</p>
Bad<p>&#8220;But I don&#8217;t want to go among mad people,&#8221; Alice remarked.</p>


Your best bet is to replace the character with the nearest equivalent ASCII character, or to use an appropriate Character Entity. Be aware that if you choose to use entities, they may not look equally good in all fonts. (For example, the curly quotes in Times New Roman are nice and curly, whereas the ones in Arial are just straight, slanted lines.)