[Beginner] Launch URL issue, URL additional characters

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

[Beginner] Launch URL issue, URL additional characters

Post by shawnblc » Tue Jan 13, 2015 6:55 am

I have the following in a textbox, if I copy and paste this into my browser I can pull up the text file.
http://www.mydomain.com/co/1-12-15%2023 ... -3N4G2.txt

When I use the code, there's characters that are added to the URL. Not just your normal URLEncode %20, but "M62A3". Where in the heck is that coming from?

Code: Select all

  put "http://www.mydomain.com/co/"& tFileName into fld "lblLink"
The URL is corrected in the label, but there's hidden characters M62A3 when clicked.

Code: Select all

on mouseUp
   Launch URL fld "lblLink"
end mouseUp
Additional characters are being added to the URL, notice the M62A3.
http://www.mydomain.com/co/1-12-15M62A3 ... -3N4G2.txt


Using LC 7.0.1 RC4 Build 10022 (commercial), on OSX Yosemite, 10.10.1.

AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: [Beginner] Launch URL issue, URL additional characters

Post by AndyP » Tue Jan 13, 2015 8:55 am

Your original string before encoding is

http://www.mydomain.com/co/1-12-15 23:47 ST Documents 1C2Y4-3N4G2.txt

The extra data is being inserted where the spaces should be even though the space is correctly URL encoded as %20 so it looks like your server is misinterpreting the encoding.
Andy .... LC CLASSIC ROCKS!

shawnblc
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 342
Joined: Fri Jun 01, 2012 11:11 pm

Re: [Beginner] Launch URL issue, URL additional characters

Post by shawnblc » Tue Jan 13, 2015 2:06 pm

AndyP wrote:Your original string before encoding is

http://www.mydomain.com/co/1-12-15 23:47 ST Documents 1C2Y4-3N4G2.txt

The extra data is being inserted where the spaces should be even though the space is correctly URL encoded as %20 so it looks like your server is misinterpreting the encoding.
Andy, that makes perfect sense. I've contacted my hosting company to see what they say and more importantly to see if they will resolve it. Thank you for reading and responding.

Used a work around and replaced the added characters with %20 and all is well. Still haven't heard from my web host.

Post Reply