URL links with a ? character

Please post general questions about WebLobby here
Blade
Expert
Expert
Posts: 760
Joined: Tue Nov 09, 2004 9:38 pm
Location: Lucan, Ontario
Contact:

URL links with a ? character

Postby Blade » Thu Jul 16, 2009 12:16 pm

It appears that there is an issue when using the Web|Navigate call with a URL that contains a ?

I am trying to use a url from the MLRss plugin and I need this to work. Creating a redirect will not work because the URLs for the news stories will change.

Any ideas how to get around this?

User avatar
ronsatter
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1304
Joined: Mon Dec 04, 2006 1:40 am
Location: San Leandro, CA
Contact:

Postby ronsatter » Thu Jul 16, 2009 4:59 pm

Blade,

I found this script which I believe was a work-around for the same issue ... different character. In this case it was the "~" character. Maybe you can build a script using this as your template.

Script name for this one is "Replace"

Code: Select all

Option Explicit

Sub Tilde (params)
    dim ServerVar
    dim ServerValue
    ServerVar = Params(0)
    ServerValue  = MLServer.GetVariable (cStr(ServerVar))
    ServerValue = Replace(ServerValue, "~", "%7E",1,-1,1)
    MLServer.SetVariableFast ServerVar, ServerValue
End Sub


I'm not sure what the replacement characters "%7E" actually represent.

Ron
If it ain't broke ... don't fix it!

geodementia
New Member
New Member
Posts: 41
Joined: Wed Jan 23, 2008 4:06 am
Location: Sydney, Australia
Contact:

Re: URL links with a ? character

Postby geodementia » Tue Jul 21, 2009 12:39 am

Ron,

%7E is the "URL Encoded" representation of the ~ character. (7E is the Hex value)
Check out http://www.blooberry.com/indexdot/html/topics/urlencoding.htm for a bit more information on URL encoding.
Geoff
Sydney, Australia

User avatar
ronsatter
Is there life beyond Cinemar?
Is there life beyond Cinemar?
Posts: 1304
Joined: Mon Dec 04, 2006 1:40 am
Location: San Leandro, CA
Contact:

Re: URL links with a ? character

Postby ronsatter » Tue Jul 21, 2009 10:52 pm

Thanks Geof.

So I'm guessing there is a hex value for the ? character. Then it should work to use the above script and just replace the hex value for the tilde with that of the question mark ... yes/no?

Ron
If it ain't broke ... don't fix it!

User avatar
CinemarDave
Site Admin
Site Admin
Posts: 10535
Joined: Fri Feb 07, 2003 8:56 am
Location: Planet Earth
Contact:

Re: URL links with a ? character

Postby CinemarDave » Wed Jul 22, 2009 12:18 am

Yes %3F


Return to “WebLobby Questions & Answers”

Who is online

Users browsing this forum: No registered users and 1 guest