W3C home > Mailing lists > Public > site-comments@w3.org > October 2001

Re: special character "SM"

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Tue, 09 Oct 2001 23:44:31 +0900 (JST)
Message-Id: <20011009.234431.122607532.mimasa@w3.org>
To: ij@w3.org
Cc: ddorsey@progress.com, site-comments@w3.org
"Ian B. Jacobs" <ij@w3.org> wrote:

>   The chart tells me that "tm" has character code 2122 and "sm"
>   has character code 2120. These are hex numbers.
> Chapter 5 [1] of the HTML 4.01 spec explains how to represent
> Unicode characters when you know their hex character codes. 
> For instance, &#x2120; represents the "sm" (letterlike) character.
> So in an HTML or XHTML document, you can write:
>  <p>This is my service mark<sup>&#2120;</sup>.</p>

No, &#x2120; or &#8480;.  And you should not use the "sup" element,
since "SERVICE MARK" character in Unicode is defined to have
superscript glyph.

> However, I doubt that many browsers will actually render the
> desired "sm" character. 

Mozilla / Netscape 6 rendered SM on Mac / Windows, Netscape
Communicator 4.78 rendered it on Windows 2000 it a document is
served as UTF-8, and even Netscape Communicator 4.08 can render
it if you use decimal numeric character reference (&#8480;), and
of course if you have an appropriate font.  Mozilla on FreeBSD
rendered it as "^(SM)", maybe just because I don't have an
appropriate font.  Neither IE 6 on Windows nor IE 5 on Mac seems
to work, nor does Opera.

> Chapter 24 of HTML 4.01 includes some abbreviations for
> frequently used characters (called "character entity
> references"). Thus, &reg; is recognized as the registered
> trade mark sign (whose hex representation is &#x174;).

Its hex representation is &#xAE;.  174 is decimal.

> [0] http://www.unicode.org/
> [1] http://www.w3.org/TR/html401/charset
> [2] http://www.unicode.org/charts/
> [3] http://www.unicode.org/charts/PDF/U2100.pdf
> [4] http://www.w3.org/TR/html401/sgml/entities.html

Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Tuesday, 9 October 2001 10:44:40 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:52:05 UTC