Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Creating a hyperlink in Mail.app adds "25" in the middle of each " %20"

Creating a hyperlink in Mail.app adds "25" in the middle of each " %20"
Thread Tools
Lebodde
Forum Regular
Join Date: Dec 2000
Status: Offline
Reply With Quote
Oct 3, 2006, 01:49 PM
 
I have a web page whose url has a few of the "%20" that are added to indicate blank spaces. Example: If my web site out of iWeb is called "Soccer Pics", the url becomes

web.mac.com/bstruye/iWeb/Soccer%20Pics

OK so far.

But if I then go into Mail, type a link like "Click Here for Soccer Pics" and then select Edit > Create Hyperlink (if that's what it's called - not in front of me right now), it creates a hyperlink that now points to:

web.mac.com/bstruye/iWeb/Soccer%2520Pics

And of course when people click on that link, they get a "Page not found" msg.

Does anyone know how to avoid that?

Thanks very much.

Bo
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Oct 3, 2006, 01:51 PM
 
Have you tried actually typing out the space? It looks like Mail is escaping the percent sign for you.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Lebodde  (op)
Forum Regular
Join Date: Dec 2000
Status: Offline
Reply With Quote
Oct 4, 2006, 01:41 PM
 
Originally Posted by Chuckit
Have you tried actually typing out the space? It looks like Mail is escaping the percent sign for you.
What do you mean by "typing out the space"? Do you mean replacing the space with an underbar?

And what do you mean by "Mail is escaping the percent sign for you" ? The percent sign is still there. Mail is just adding "25" between "%" and "20".
     
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
Oct 4, 2006, 02:18 PM
 
He means just input the URL as:

http://web.mac.com/bstruye/iWeb/Soccer Pics

Mail should convert it to a link.

Probably %25 is the code for a % sign in html, thus mail is converting %20 into [b]%25[b]20.
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Oct 4, 2006, 02:20 PM
 
When I say "typing out the space," I mean typing a space where there's supposed to be a space.

And yeah, %25 is the code for a percent sign just like %20 is the code for a space. Mail automatically replaces these things with their codes.
( Last edited by Chuckit; Oct 4, 2006 at 02:34 PM. )
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
Lebodde  (op)
Forum Regular
Join Date: Dec 2000
Status: Offline
Reply With Quote
Oct 5, 2006, 02:34 PM
 
Aha! So what you meant is "replace the %20 in the url with a regular space". Now I get it.

I will try that tonight.

Thanks guys!
     
Sherman Homan
Mac Elite
Join Date: Sep 2006
Status: Offline
Reply With Quote
Oct 5, 2006, 02:46 PM
 
I agree, Mail is an email program and is not concerned with the code that HTML needs. I have a URL with a space on one of my web pages. Mail tries to "retype" it when I make a link out of it.
     
zro
Mac Elite
Join Date: Nov 2003
Location: The back of the room
Status: Offline
Reply With Quote
Oct 6, 2006, 01:47 AM
 
Report it as a bug.
     
Chuckit
Clinically Insane
Join Date: Oct 2001
Location: San Diego, CA, USA
Status: Offline
Reply With Quote
Oct 6, 2006, 01:50 AM
 
To be honest, this behavior is how browsers should have handled URLs all along. There's no reason users should be forced to deal with the technical limitations of URL encoding. But early Web browsers were really not concerned with user-friendliness, and they got locked into that paradigm. At least now they stick on the http:// at the beginning, I guess.
Chuck
___
"Instead of either 'multi-talented' or 'multitalented' use 'bisexual'."
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:06 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,