- From: Ian B. Jacobs <ij@w3.org>
- Date: Tue, 09 Oct 2001 10:48:00 -0400
- To: Masayasu Ishikawa <mimasa@w3.org>
- CC: ddorsey@progress.com, site-comments@w3.org
Masayasu Ishikawa wrote: > > "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, ℠ represents the "sm" (letterlike) character. > > > > So in an HTML or XHTML document, you can write: > > > > <p>This is my service mark<sup>ࡈ</sup>.</p> > > No, ℠ Sorry about that: I left out the "x" in the example. > or ℠. And you should not use the "sup" element, > since "SERVICE MARK" character in Unicode is defined to have > superscript glyph. Thanks Mimasa, I didn't know that. > > 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 (℠), and > of course if you have an appropriate font. Do you have any data on whether this is true "in general": that browsers are more likely to handle correctly when represented in decimal form? > 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, ® is recognized as the registered > > trade mark sign (whose hex representation is Ŵ). > > Its hex representation is ®. 174 is decimal. Sorry again for the sloppy response. Thanks Mimasa, - Ian -- Ian Jacobs (ij@w3.org) http://www.w3.org/People/Jacobs Tel: +1 718 260-9447
Received on Tuesday, 9 October 2001 10:49:52 UTC