Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: to-url

From: carl:cybercraft at: 6-Jan-2003 15:56

On 06-Jan-03, Tim Johnson wrote:
> Hello : > I have some questions about to-url here: > supose I want to create a query-string in a url > that has letters like "?=&" inside of > the values. >>> to-url "Father & sons" > == Father & sons > ;yikes, shouldn't we get Father %26 son ('&' is hex 26, right?) > ; decoding this will give incorrect results, I think... > Comments and suggestions welcome
I just searched google for "a & b" to see how it'd make its URL, and this is what it returned... My guess would be that you'd convert to %26 if it's part of some text, but leave as-is if it's for breaking up the query. (A guess mind - others here will know the rules I'm sure.) -- Carl Read