Re: how to convert *space* to
Re: how to convert *space* to
- Subject: Re: how to convert *space* to
- From: Richard Rönnbäck <email@hidden>
- Date: Wed, 18 Nov 2009 05:24:52 +0100
- Thread-topic: how to convert *space* to
Title: Re: how to convert *space* to
As it happens, I wrote a small handler to do that just the other day. I isn't thoroughly tested and you may want to keep an eye on the result for non-English characters, as all sort of things may happen with different Unicode flavors.
Having that said, I think it will work just fine if you are looking to URL encode a string:
display dialog urlEncode("here is some sample text")
on urlEncode(myString)
set myQutedURL to quoted form of myString
set myCmd to "php -r \"echo rawurlencode(" & myQutedURL & ");\""
set myResult to do shell script myCmd
return myResult
end urlEncode
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden