realbasic-nug
[Top] [All Lists]

Re: HTML Encoding code?

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: HTML Encoding code?
From: Guyren Howe <guyren at mac dot com>
Date: Tue, 30 Jan 2007 17:01:22 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <A90D5E2B-7654-4377-865F-25C50DBB3A0A at mac dot com> <B29ACA14-98B4-4A8F-8EEF-12B01AF27F17 at mac dot com>
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>


<Prev in Thread] Current Thread [Next in Thread>