Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #9776

JavaScript's Character Escaping Functions

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Gene Wirchenko <genew@ocis.net>
Newsgroups comp.lang.javascript
Subject JavaScript's Character Escaping Functions
Date Thu, 29 Dec 2011 17:30:08 -0800
Organization A noiseless patient Spider
Lines 23
Message-ID <nk4qf7ti2bbod0k5flbs0bbm880dpdvv35@4ax.com> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
Injection-Info mx04.eternal-september.org; posting-host="JCn9+dUdCQH+ycRezr2Sxw"; logging-data="28433"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0rx72MrgEkWhb1vhDkx6Zckpvpon85tk="
X-Newsreader Forte Agent 4.2/32.1118
Cancel-Lock sha1:4drN0v5dZVY+OQInB6HYRxWQENc=
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:9776

Show key headers only | View raw


Dear JavaScripters:

     There are a number of functions for escaping various characters
and de-escaping them:
          Escape Function          Unescape Function
          ---------------          -----------------
          escape()                 unescape()
          encodeURI()              decodeURI()
          encodeURIComponent()     decodeURIComponent()
There may be others that I am unaware of.

     What I am definitely unaware of is when to use them.  I have not
seen any material on that other than vague (to me) sentences.  They
seem to assume that people already know what they are doing with them.

     Between them and HTML's "&something;", I really could use a good
grounding in the area.

     Pointers please?

Sincerely,

Gene Wirchenko

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

JavaScript's Character Escaping Functions Gene Wirchenko <genew@ocis.net> - 2011-12-29 17:30 -0800
  Re: JavaScript's Character Escaping Functions Tim Streater <timstreater@greenbee.net> - 2011-12-30 10:33 +0000
    Re: JavaScript's Character Escaping Functions Gene Wirchenko <genew@ocis.net> - 2011-12-30 11:45 -0800
      Re: JavaScript's Character Escaping Functions "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2011-12-30 22:06 +0200
      Re: JavaScript's Character Escaping Functions Tim Streater <timstreater@greenbee.net> - 2011-12-30 22:45 +0000
  Re: JavaScript's Character Escaping Functions "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2011-12-30 12:03 -0800
  Re: JavaScript's Character Escaping Functions Denis McMahon <denismfmcmahon@gmail.com> - 2011-12-31 10:05 +0000
    Re: JavaScript's Character Escaping Functions Gene Wirchenko <genew@ocis.net> - 2011-12-31 23:41 -0800
      Re: JavaScript's Character Escaping Functions Dr J R Stockton <reply1152@merlyn.demon.co.uk> - 2012-01-02 19:10 +0000
  Re: JavaScript's Character Escaping Functions Dr J R Stockton <reply1152@merlyn.demon.co.uk> - 2011-12-31 20:41 +0000

csiph-web