9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] urlencoder
@ 2002-08-04 22:43 matt
  0 siblings, 0 replies; only message in thread
From: matt @ 2002-08-04 22:43 UTC (permalink / raw)
  To: 9fans

forgot to mention how it works

say it's registered on %U

print("%U", string)  this would url encode the string and replace spaces
with %20

print("%+U", string)  this would url encode the string and replace spaces
with +
(for http POST and GET requests)

print("%-U", string) this would decode a string (in either + or %20 format)

M



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-08-04 22:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-04 22:43 [9fans] urlencoder matt

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).