Cut and paste a URL gives is a space? That space becomes a %20, then the link is broken??

denvercardonations

New member
Joined
Mar 1, 2016
Messages
117
Points
0
I use ctrl + v and ctrl + shift + v and I still get broken links "long-url-like-this" will turn into "long-%20url-like-this" Does anyone know how to stop the dashes from getting spaces on cut and paste? This is driving me nuts! :crazy:
 

velvet

New member
Joined
Feb 14, 2016
Messages
56
Points
0
Hi denvercardonations,
can you give some idea of when this happens to you.

I have done a search and found some users with Safari
browsers were having a similar problem.

Others only on certain sites.

Some said they needed to highlight the URL first.

Others said that did not work for them?

I can't say I have experienced this myself.

cheers, Mal.
 

Hawker

Active member
Joined
Dec 22, 2015
Messages
504
Points
43
I use ctrl + v and ctrl + shift + v and I still get broken links "long-url-like-this" will turn into "long-%20url-like-this" Does anyone know how to stop the dashes from getting spaces on cut and paste? This is driving me nuts! :crazy:
Well what browser are you using?

Control + Shift + V opens the blockable items list in Firefox.

Anyway, the reason you're getting things like %20 etc is because those are spaces and quotes and things like that in the URL.

URLs can only be sent over the Internet using the ASCII character-set.

Since URLs often contain characters outside the ASCII set, the URL has to be converted into a valid ASCII format.

URL encoding replaces unsafe ASCII characters with a "%" followed by two hexadecimal digits.

URLs cannot contain spaces. URL encoding normally replaces a space with a plus (+) sign or with %20.

http://www.w3schools.com/tags/ref_urlencode.asp
https://en.wikipedia.org/wiki/Percent-encoding
 

Hawker

Active member
Joined
Dec 22, 2015
Messages
504
Points
43
I think what he's saying is, he's copying URL's from the address bar and then pasting them into something.

But he's finding that all the URL's he's pasting are being saved with %20 etc etc in the actual URL and not how it looks in the address bar.

This is because of ASCII URL encoding.

If he copies and pastes them back into the address bar, the browser will know what the %20 etc etc whether its a space or not and go to the correct address.

That's why I put the Percent codes so he'd know which is which.

A quick Google search would have / will told/tell him/you/anyone this though.
 

denvercardonations

New member
Joined
Mar 1, 2016
Messages
117
Points
0
Code:
Tags for tomorrow: <a href="https://www.denverdonate.com/partners/meetings/denver-thursday-aa-meetings">thursday aa meetings in denver</a>, <a href="https://www.denverdonate.com/partners/meetings/denver-sunday-aa-meetings">sunday aa meetings in denver</a>, <a href="https://www.denverdonate.com/vehicle-donation-colorado/tag/donate-my- car-online">donate my car online</a></p>
That is a code paste from notepad where I removed all of the spaces between hyphens, but it pastes with spaces, breaking the URLs.
 

DavidFeldman

New member
Joined
Feb 28, 2016
Messages
26
Points
0
That is a code paste from notepad
You are pasting from notepad? I think you mean you copy and paste from your browser into notepad. I'm guessing.

but it pastes with spaces, breaking the URLs.
Pastes where?

I still don't follow exactly what you are doing. From where are you copying and to where are you pasting?

And if it's Notepad, try another editor like jEdit--it's free and is far better.
 
Newer threads
Replies
5
Views
2,525
Replies
3
Views
2,862
Latest threads
Replies
0
Views
589
Replies
2
Views
788
Replies
1
Views
309
Recommended threads
Replies
0
Views
2,395
Replies
11
Views
5,515
Replies
2
Views
1,466
Replies
1
Views
2,393

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top