ASCII code

K

Keith

I'm trying to validate a page in HTML, but it will not accept the UK £ sign
(I presume that is my problem). Have tried in vain to search for the ascii
code, but without any luck. Would any one per-chance know it.
 
M

Mitja

This is the whole lot; you can find the pound sign in the second half of the
list.

ISO Latin-1 characters
À A capital A, grave accent ï i small i,
diaresis/umlaut
à a small a, grave accent Ð ? capital Eth,
Icelandic
Á Á capital A, acute accent ð ? small eth, Icelandic
á á small a, acute accent Ñ N capital N, tilde
  capital A, circumflex ñ n small n, tilde
â â small a, circumflex Ò O capital O, grave
accent
à A capital A, tilde ò o small o, grave accent
ã a small a, tilde Ó Ó capital O, acute
accent
Ä Ä capital A, diaresis/umlaut ó ó small o, acute accent
ä ä small a, diaresis/umlaut Ô Ô capital O, circumflex
Å A capital A, ring ô ô small o, circumflex
å a small a, ring Õ O capital O, tilde
Æ A capital AE ligature õ o small o, tilde
æ a small ae ligature Ö Ö capital O,
diaresis/umlaut
Ç Ç capital C, cedilla ö ö small o,
diaresis/umlaut
ç ç small c, cedilla Ø O capital O, slash
È E capital E, grave accent ø o small o, slash
è e small e, grave accent Ù U capital U, grave
accent
É É capital E, acute accent ù u small u, grave accent
é é small e, acute accent Ú Ú capital U, acute
accent
Ê E capital E, circumflex ú ú small u, acute accent
ê e small e, circumflex Û U capital U, circumflex
Ë Ë capital E, diaresis/umlaut û u small u, circumflex
ë ë small e, diaresis/umlaut Ü Ü capital U,
diaresis/umlaut
Ì I capital I, grave accent ü ü small u,
diaresis/umlaut
ì i small i, grave accent Ý Ý capital Y, acute
accent
Í Í capital I, acute accent ý ý small y, acute accent
í í small i, acute accent Þ ? capital Thorn,
Icelandic
Î Î capital I, circumflex þ ? small thorn,
Icelandic
î î small i, circumflex ß ß small sharp s, German
sz
Ï I capital I, diaresis/umlaut ÿ y small y,
diaresis/umlaut



Additional characters from ISO 8859-1
    non-breaking space ± ± ±
plus-or-minus sign
¡ ¡ ! inverted exclamation mark ² ² 2 superscript
two
¢ ¢ c cent sign ³ ³ 3 superscript
three
£ £ L pound sign ´ ´ ´ acute accent
¤ ¤ ¤ general currency sign µ µ µ micro sign
¥ ¥ Y yen sign ¶ ¶ ¶ pilcrow
(paragraph sign)
¦ ¦ ¦ broken (vertical) bar · · · middle dot
§ § § section sign ¸ ¸ ¸ cedilla
¨ ¨ ¨ umlaut/dieresis ¹ ¹ 1 superscript
one
© © © copyright sign º º o ordinal
indicator, male
ª ª a ordinal indicator, fem » » » angle
quotation mark, right
« « « angle quotation mark, left ¼ ¼ 1 fraction
one-quarter
¬ ¬ ¬ not sign ½ ½ 1 fraction
one-half
­ ­ ­ soft hyphen ¾ ¾ 3 fraction
three-quarters
® ® ® registered sign ¿ ¿ ? inverted
question mark
¯ ¯ - macron × × × multiply
sign
° ° ° degree sign ÷ ÷ ÷ division
sign
 
J

Jukka K. Korpela

Keith said:
I'm trying to validate a page in HTML, but it will not accept the UK £
sign (I presume that is my problem). Have tried in vain to search for
the ascii code, but without any luck.

There is no ASCII code for the pound sign, simply because the pound sign
is not an ASCII character. (The real story is a bit more complicated, but
it's not relevant here; but see
http://www.cs.tut.fi/~jkorpela/latin1/3.html#23 )

In addition to the options of using an entity or a character reference for
the pound sign, there's the simple option of using it as an actual 8-bit
value according to the ISO 8859-1 encoding, which is probably what you had
done, _and_ to announce that encoding in HTTP headers (and/or in <meta>
surrogates).
 
A

Andreas Prilop

Mitja said:
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000

&Auml; ? capital A, diaresis/umlaut &oacute; ? small o, acute accent
&auml; ? small a, diaresis/umlaut &Ocirc; ? capital O, circumflex

Fix your <cough> newsreader before you try to give advice on character
codes:

Tools > Options > Send
Mail Sending Format > Plain Text Settings > Message format MIME
News Sending Format > Plain Text Settings > Message format MIME
Encode text using: None
 
C

C A Upsdell

There is no ASCII code for the pound sign, simply because the pound sign
is not an ASCII character.

To be more precise, it is not a US-ASCII character.
 
J

Jukka K. Korpela

C A Upsdell said:
To be more precise, it is not a US-ASCII character.

It is not more precise at all. US-ASCII is completely synonymous with
ASCII. Ref.: IANA charset registry.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,079
Messages
2,570,574
Members
47,207
Latest member
HelenaCani

Latest Threads

Top