Page 1 of 1

[Beginner] Launch URL issue, URL additional characters

Posted: Tue Jan 13, 2015 6:55 am
by shawnblc
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.

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

Posted: Tue Jan 13, 2015 8:55 am
by AndyP
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.

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

Posted: Tue Jan 13, 2015 2:06 pm
by shawnblc
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.