Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

Bernardo de La Paz

(59,467 posts)
Sat Oct 4, 2025, 04:23 PM Oct 4

How to make working URL links when they have parentheses and special characters

Last edited Sat Oct 4, 2025, 05:02 PM - Edit history (1)

Here's a typical link that doesn't work: https://en.wikipedia.org/wiki/(Always_Be_My)_Sunshine

To get links like that to work, you need to substitute the parentheses and other characters that sometimes appear such as hash marks. It's a bit technical, but you look up "ascii parenthesis" and choose the unicode or hex value. Here's a good link: https://en.wikipedia.org/wiki/ASCII

In particular, substitute %28 for ( and %29 for ).

There ASCII URL encoders and decoders, but they tend to encode colons and sometimes the slashes so they don't work too well.

https://www.url-encode-decode.com/ produces:
https%3A%2F%2Fen.wikipedia.org%2Fwiki%2F%28Always_Be_My%29_Sunshine

https://ascii.cl/url-encoding.htm produces:
https%3A//en.wikipedia.org/wiki/%28Always_Be_My%29_Sunshine

You might use them and maybe save a little time or trouble by just replacing the %3A with the colon, which is easy to remember since it is near the front and we've seen thousands of them:

https://en.wikipedia.org/wiki/%28Always_Be_My%29_Sunshine

14 replies = new reply since forum marked as read
Highlight: NoneDon't highlight anything 5 newestHighlight 5 most recent replies

Bettie

(18,947 posts)
1. Bookmarked...now if there was a tutorial for
Sat Oct 4, 2025, 04:40 PM
Oct 4

posting pictures! I can never get that.

ETA: Thank you!

PoindexterOglethorpe

(28,141 posts)
2. I don't know what's wrong with your browser,
Sat Oct 4, 2025, 04:41 PM
Oct 4

but when I click on your first link, I get immediately transported to the Wikipedia article.

Must be a problem with your browser, or some such.

Bernardo de La Paz

(59,467 posts)
3. Check again. It connects to Vancouver, not Northeast Corridor. Diff from last link. I might change the example. . . nt
Sat Oct 4, 2025, 04:44 PM
Oct 4

PoindexterOglethorpe

(28,141 posts)
12. So you changed it so it no longer links to the original
Sat Oct 4, 2025, 07:40 PM
Oct 4

article it did link to. It's a DIFFERENT link from the one you had a bit ago that went directly to the website you said it didn't link to. That's a bit dishonest.

Bernardo de La Paz

(59,467 posts)
13. Come on. I SAID I was going to CHANGE the example. Obviously it is a DIFFERENT link.
Sat Oct 4, 2025, 08:28 PM
Oct 4

The original example went to a valid page when it was truncated by the DU page, but not the intended page. That caused confusion which I described.

So to make a more illustrative discussion, I changed to a different example where the truncation did not lead to a valid page, in order to make the effectiveness of the character code substitutions crystal clear.

Everything I've done is this thread has been out in the open. There is no dishonesty. The original edit is still available in the edit record. The green indicator provided by DU includes a link to the Edit History. But even without the green, you can click on the big number in the Recommendations box upper left to get to the Edit History. There you can click on All to see All of the edits.

Bernardo de La Paz

(59,467 posts)
6. Interesting. I'm running up to date Firefox 143.0.4, Windows 11. I wonder if there is some add on or settting
Sat Oct 4, 2025, 05:29 PM
Oct 4

Does it change the appearance of the first link in the first line of the OP to the desired way? Or are you saying that when you click on the first link it does the desired thing and put the desired URL in the address box heading the Wikipedia page it goes to?

I don't think you are talking about the last link in the last line. And I don't think you are talking about copy-pasting the first-line link to the address bar.

TheBlackAdder

(29,757 posts)
9. I'm Firefox 143.0.1 on WIN11 23H2, OS Build 22631.5909 & Windows Feature Experience Pack 1000.22700.1106.0
Sat Oct 4, 2025, 06:39 PM
Oct 4

My Edge doesn't perform that way. Only Firefox. I can't locate a setting in Edge to do the conversion. I think there might be an extension that does it, but my Edge is relatively base. Firefox has a few extensions on it, none that I see mentions playing around with the URL. Now, there are mentions of a UTF-8 setting in Firefox to disable the conversion. Several links point to this that are 12 years old.

TheBlackAdder

(29,757 posts)
14. If I paste the first link in the browser address bar, go to the site, copy the link and paste it to another window...
Sat Oct 4, 2025, 09:26 PM
Oct 4

the conversion takes place and the second window has the second link's value in the address bar. Even when I copy from a Firefox browser to Edge, the converted link pastes. So, the conversion definitely happens when copying from a Firefox URL.

synni

(582 posts)
7. Just copy and paste the link into your address bar--works every time
Sat Oct 4, 2025, 06:28 PM
Oct 4

Any broken link can be "fixed" this way.

Latest Discussions»General Discussion»How to make working URL l...