On Jan 30, 2007, at 4:25 PM, Tom Benson wrote:
Try the EncodeURLComponent Function.
From the Language Reference:
Dim s as String
s=EncodeURLComponent("www.Bob&Ray.com") //returns "www.bob%
26ray.com"
On 31/01/2007, at 9:19 AM, Guyren Howe wrote:
Bizarrely, I can't locate any code for REALbasic that converts
characters intended for a URL into HTML escape sequences as need
be. eg space into %20.
Bizarrely, also, there doesn't appear to be a built-in function to
do it.
I could roll my own, but surely someone has already done this?
Thanks. Now, if only the LR listed that under, oh, I don't know --
Text/Strings -- I might have found it myself.
Regards,
Guyren G Howe
Relevant Logic LLC
guyren-at-relevantlogic.com ~ http://relevantlogic.com
REALbasic, PHP, Ruby/Rails, Python programming
PostgreSQL, MySQL database design and consulting
Technical writing and training
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>