Re: When you want one odd character....
From: | Philip Newton <philip.newton@...> |
Date: | Saturday, May 18, 2002, 4:47 |
On 17 May 02, at 14:07, Clint Jackson Baker wrote:
> However, I'm not sure how I would type it using
> your code, as I don't know what key you
> mean by "U".
I was talking about the Unicode code point, which I've usually seen
expressed as "U+xxxx", with xxxx being four hexadecimal digits. The way
you actually insert it is with the entity form (which your mail client
unhelpfully seems to have converted into a question mark). Use
ampersand, number sign, 383, semicolon (& # 383 ;), written all
together. (I see those letters when I write ſ , but you might see
the question mark again.) In theory, & # x 17f also works, but more
browsers support decimal entities than hexadecimal.
> Also, how do I set the page encoding?
Ideally, in the web server, by telling it that the page is UTF-8
encoded (for example, for the Apache that my web hoster uses, I call
the page "foo.html.utf8" and then have "AddCharset utf-8 .utf8" which
causes Apache to send "Content-type: text/html;charset=utf-8" to
browsers). Otherwise, try adding
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
(and hope that your mailer doesn't swallow the preceding line by
interpreting it as HTML).
> Also, I forget--isn't there a website that gives the
> HTML numeric entities for unusual characters?
http://www.unicode.org/charts/ may help, though you may want to convert
their hexadecimal code points into decimal for greater browser
compatibility.
Cheers,
Philip
--
Philip Newton <Philip.Newton@...>
Replies