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

how to escape a caret

 [1/5] from: kenlo:pop3free at: 20-Apr-2001 13:55


How can I escape the caret (^) in page: read http://whatever.com/cgi?data=^something \^ or "^" or ^^ or %5e does not work. I've tried.

 [2/5] from: jelinem1::nationwide::com at: 20-Apr-2001 8:10


This works for me:
>> print "^^"
^ - Michael Jelinek Kenneth LO <[kenlo--pop3free--com]>@rebol.com on 04/20/2001 12:55:21 AM From: Kenneth LO <[kenlo--pop3free--com]>@rebol.com on 04/20/2001 12:55 AM Please respond to [rebol-list--rebol--com] Sent by: [rebol-bounce--rebol--com] To: [rebol-list--rebol--com] cc: Subject: [REBOL] how to escape a caret How can I escape the caret (^) in page: read http://whatever.com/cgi?data=^something \^ or "^" or ^^ or %5e does not work. I've tried.

 [3/5] from: kenlo:pop3free at: 27-Apr-2001 15:28


I think url is not parsed this way. Try page: read http://quote.yahoo.com/d/quotes.csv?s=^^HSI&f=sl1d1t1c1ohgv&e=.csv page: read to-url "http://quote.yahoo.com/d/quotes.csv?s=^^HSI&f=sl1d1t1c1ohgv&e=.csv" They all fail. 2001/4/20 AM 03:10:22, [JELINEM1--nationwide--com] wrote:

 [4/5] from: jelinem1:nationwide at: 27-Apr-2001 7:54


Sorry, skimmed through my emails too fast, didn't read the context of your question. You're right, URLs in REBOL don't like carets (but the double carets do evaluate to a single). I'll suppress the urge to make a pun out of this. - Michael Jelinek Kenneth LO <[kenlo--pop3free--com]>@rebol.com on 04/27/2001 02:28:05 AM From: Kenneth LO <[kenlo--pop3free--com]>@rebol.com on 04/27/2001 02:28 AM Please respond to [rebol-list--rebol--com] Sent by: [rebol-bounce--rebol--com] To: [rebol-list--rebol--com] cc: Subject: [REBOL] Re: how to escape a caret I think url is not parsed this way. Try page: read http://quote.yahoo.com/d/quotes.csv?s=^^HSI&f=sl1d1t1c1ohgv&e =.csv page: read to-url "http://quote.yahoo.com/d/quotes.csv?s =^^HSI&f=sl1d1t1c1ohgv&e=.csv" They all fail. 2001/4/20 AM 03:10:22, [JELINEM1--nationwide--com] wrote:

 [5/5] from: joel:neely:fedex at: 27-Apr-2001 8:25


Try url-encoding the caret, as in
>> read to-url "http://quote.yahoo.com/d/quotes.csv?s=%5dHSI&f=sl1d1t1c1ohgv&e=.csv"
== {"]HSI",0.00,"N/A","N/A",N/A,N/A,N/A,N/A,N/A } -jn- [JELINEM1--nationwide--com] wrote: