Does anybody know what the html code is for the character ' ?
The single quote... I can't just do ' in my html code because the html code
is extracted from a mysql database...
Thanks!
---
Mark Viersen
Webmaster of www.writerssociety.cjb.net
> Hello,
>
> Does anybody know what the html code is for the character ' ?
> The single quote... I can't just do ' in my html code because the html code
> is extracted from a mysql database...
’
Get yourself an editor like BBEdit, which provides a toolbar list of
these things . . .
Glenn
>> Does anybody know what the html code is for the character ' ?
>> The single quote... I can't just do ' in my html code because the
>> html code is extracted from a mysql database...
>
> ’
No, the code for the character ' (apostrophe) is '.
The notation ’ refers to right single quotation mark, which is
the recommended (as per the Unicode standard) character for apostrophe
as used e.g. in English. But that character is definitely distinct from
the apostrophe ' and does not work universally.
More on this: http://www.cs.tut.fi/~jkorpela/latin1/3.html#27
As far as HTML is considered, there is never any reason to use any
particular code for ' as opposite to the character itself, except if it
is to appear within an _attribute_ value delimited by apostrophes, for
some odd reason. That is, title='Don't' won't do, and title='Don't'
would be OK, but so would title="Don't".
If you you think you need to "escape" the apostrophe for reasons
related to the program for generating an HTML document, the
constructive approach is to ask why that program requires such a thing.
For example, in a Perl script, I would just use \'.
Followups trimmed.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
> In article <a5dpoo$tj$1...@reader08.wxs.nl>,
> "Joke, Mark en Henk" <jom...@spamstop.planet.nl> wrote:
>
>> Does anybody know what the html code is for the character ' ?
>> The single quote... I can't just do ' in my html code because the html
>> code is extracted from a mysql database...
>
> ’
That's a unicode opening single quote which is a differnt character -
you have to close it with 8218.
The actual answer to the question is ' or 1
In your native language maybe. We English-writers open with ‘ and
close with ’
> The actual answer to the question is ' or 1
Neither of which is correct at least in IE5.0. And 1 is the number 1.
Stewart.
--
My e-mail is valid but not my primary mailbox. Please keep replies on the
'group where everyone may benefit.
I mean 39 ...
> viza <m...@work.not> wrote in message
> news:INxe8.4142$R16.7...@news11-gui.server.ntli.net...
> <snip>
>> > ’
>>
>> That's a unicode opening single quote which is a differnt character -
>> you have to close it with 8218.
>
> In your native language maybe. We English-writers open with ‘ and
> close with ’
There's two lots, single and double quotes, Both of which are used in
English.
>> The actual answer to the question is ' or 1
>
> Neither of which is correct at least in IE5.0. And 1 is the number 1.
D'oh! I already corrected myself, I have a big chart of them on the wall
here, and it whas a mistake in the numbers, it goes 36 37 38 49 40 41 42 43.
' is standard in in any xml dtd, which is a subset of sgml, so it must
be valid in html* as an sgml dtd - and I know ie doesn't like it that's why
I gave the (wrong) number.
I know that.
<snip>
> ' is standard in in any xml dtd, which is a subset of sgml, so it
must
> be valid in html* as an sgml dtd - and I know ie doesn't like it that's
why
> I gave the (wrong) number.
Well, not exactly. The XML form <tag /> is technically not valid SGML, or
at least doesn't mean what you'd expect it to mean. In actual fact a slash
at the end of an SGML tag is part of a shorthand that no browser understands
AFAIK (except perhaps a select few true SGML parsers).
"Joke, Mark en Henk" <jom...@spamstop.planet.nl> wrote in message
news:a5dpoo$tj$1...@reader08.wxs.nl...
(http://hotwired.lycos.com/webmonkey/reference/special_characters/)
--
--------------------------------------
John M. Wainwright
j...@JohnnyGeek.com
www.JohnnyGeek.com
--------------------------------------
"Ibis" <ib...@home.com> wrote in message
news:a6rgtu$rfq$1...@reader1.tiscali.nl...