Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8000
| From | Tim <timothygill07040@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | basic Q on enclosing curly quotation/quot characters into strings |
| Date | 2011-11-04 12:41 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <3ce3cfc5-e4fb-45b9-8e6f-328ee1f388e7@m19g2000vbm.googlegroups.com> (permalink) |
I know some programming though not much JavaScript and I have to modify an existing JavaScript program that has an array assignment statement like labels[0] = "This does work for the typical case."; I need to change the "does" to "doesn't" where the single quote needs to be the proper curly single quote, because the font used to display this is a nice serif font. But the following change, using the "decimal numeric character reference" for right single quote ’ does not work: labels[0] = "This doesn’t work for the typical case."; I've looked online for 30 minutes and have tried concatenation and eval, but that does not work either. I just need to make this one change and get back to some other work. Anyone have the answer?
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
basic Q on enclosing curly quotation/quot characters into strings Tim <timothygill07040@gmail.com> - 2011-11-04 12:41 -0700
Re: basic Q on enclosing curly quotation/quot characters into strings "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-11-04 22:05 +0200
Re: basic Q on enclosing curly quotation/quot characters into strings Timothy Gill <setsee@gmail.com> - 2011-11-04 13:42 -0700
Re: basic Q on enclosing curly quotation/quot characters into strings Denis McMahon <denismfmcmahon@gmail.com> - 2011-11-04 21:40 +0000
Re: basic Q on enclosing curly quotation/quot characters into strings "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-11-04 23:50 +0200
csiph-web