LWN.net Logo

Weird characters

Weird characters

Posted Apr 7, 2004 15:17 UTC (Wed) by scglwn (subscriber, #1245)
In reply to: Weird characters by corbet
Parent article: X.Org Foundation releases X Window System X11R6.7

The html source doesn't literally contain those characters, but instead it contains the so-called decimal entity references: “ and ”. I believe that that's the correct way of doing such things. (e.g. the euro symbol would be €)


(Log in to post comments)

Weird characters

Posted Apr 7, 2004 15:34 UTC (Wed) by pkturner (subscriber, #2809) [Link]

When my Mozilla browser downloads the HTML, it has the byte codes 0x93 and 0x94 in those locations. Those are Windows codes, not part of the iso-8859-1 charset.

Weird characters

Posted Apr 8, 2004 7:56 UTC (Thu) by scglwn (subscriber, #1245) [Link]

You are right, sorry for the confusion. After saving the page to a file, Firefox silently replaces the (invalid) character codes by the correct decimal references. Yeeks!

Weird characters - decimals are correct.

Posted Apr 7, 2004 21:44 UTC (Wed) by dwheeler (guest, #1216) [Link]

Yes, the safest way to insert curling quotation marks is the decimal codes. See my paper on quotes in HTML, XML, and SGML for more information.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds