By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,607 Members | 1,925 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,607 IT Pros & Developers. It's quick & easy.

Whats the trick for special characters?

P: n/a
In using a variable message format such as content[1]='it's a small world'

How exactly is the inner ' shown in the coding?
I tried 'it&acutes' which does not work.
Neither does 'it'+&acute+'s'.

Just being curious. Not that it matters that much.

thanks again.

Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Richard wrote on 31 jan 2005 in comp.lang.javascript:
In using a variable message format such as content[1]='it's a small
world'

How exactly is the inner ' shown in the coding?
I tried 'it&acutes' which does not work.
Neither does 'it'+&acute+'s'.

Just being curious. Not that it matters that much.


If it doesn't matter much, shall we leave it at that?

===============

perhaps for others than the OP:

content[1] = "it's a small world" // using double quoted string

content[2] = 'it\'s a small world' // escaped

content[3] = 'it\047s a small world' // octal ascii

content[4] = 'it' + String.fromCharCode(39) + 's a small world'
// String object decimal ascii

etc.

--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Jul 23 '05 #2

P: n/a
On 31 Jan 2005 08:58:11 GMT Evertjan. wrote:
Richard wrote on 31 jan 2005 in comp.lang.javascript:
In using a variable message format such as content[1]='it's a small
world' How exactly is the inner ' shown in the coding?
I tried 'it&acutes' which does not work.
Neither does 'it'+&acute+'s'. Just being curious. Not that it matters that much.


If it doesn't matter much, shall we leave it at that? =============== perhaps for others than the OP: content[1] = "it's a small world" // using double quoted string content[2] = 'it\'s a small world' // escaped content[3] = 'it\047s a small world' // octal ascii content[4] = 'it' + String.fromCharCode(39) + 's a small world'
// String object decimal ascii etc.


Thanks for the info.
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.