ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Encoding reserved characters in URI query strings
@ 2017-02-05 14:06 Rogers, Michael K
  2017-02-05 17:09 ` Aditya Mahajan
  0 siblings, 1 reply; 5+ messages in thread
From: Rogers, Michael K @ 2017-02-05 14:06 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Let's say I want a link to plot x+2 in Wolfram|Alpha.  I need to catenate "http://www.wolframalpha.com/input/?i=" and  "plot+x%2B2".  Is there any way already available in ConTeXt to translate reserved characters like "+" to the percent-hexcode "%2B"?

Something like

    \encode[plot x+2]

would become

    plot+x%2B2

Or more generally, some languages have a query constructor like this

    \queryURI
      [http://www.wolframalpha.com/input]
      [i=plot x+2]

which would construct the URI

    http://www.wolframalpha.com/input/?i=plot+x%2B2

I could write my own, of course.  But no need to reinvent the wheel.

TIA,

Michael

________________________________

This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-07 15:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-05 14:06 Encoding reserved characters in URI query strings Rogers, Michael K
2017-02-05 17:09 ` Aditya Mahajan
2017-02-05 17:22   ` Rogers, Michael K
2017-02-07 12:24   ` Bibliography Jean-Pierre Delange
2017-02-07 15:12     ` Bibliography Alan Braslau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).