encode url without OSAX
encode url without OSAX
- Subject: encode url without OSAX
- From: Brian <email@hidden>
- Date: Fri, 29 Jun 2001 23:12:47 -0400
trying to script an http upload script I ran into a need to encode
characters for use in a url and I quickly located the "Encode URL" OSAX, but
wanted to try to avoid scripting additions if at all possible.
I thought I might be able to do something like:
set x to "the quick brown fox"
set y to every text item of x
repeat with i in y
if i = " " then
set i to " "
end if
end repeat
return y as string
but the result still shows the <spaces> as <spaces> rather than s.
Any ideas what I'm missing/doing wrong/don't understand?
brian