url and parens issue

Feedback and site usage questions

Moderator: Moderators

Post Reply
User avatar
ThatGirlAgain
Prodigy
Posts: 2961
Joined: Wed Jul 27, 2011 1:09 pm
Location: New York City
Been thanked: 1 time

url and parens issue

Post #1

Post by ThatGirlAgain »

For what it is worth there appears to be an issue with parentheses in urls.

This form fails to be recognized as a url= type link:

Code: Select all

[url=http://en.wikipedia.org/wiki/Caritas_(charity)]Caritas[/url]
Caritas


This form works with the parentheses removed but does not lead to any web page.

Code: Select all

[url=http://en.wikipedia.org/wiki/Caritas_charity]Caritas[/url]
Caritas


This form, with no url or url= fails in an informative way.

Code: Select all

http://en.wikipedia.org/wiki/Caritas_(charity)
http://en.wikipedia.org/wiki/Caritas_(charity)


Here is the post where the link appears.
http://debatingchristianity.com/forum/v ... 0&start=14
Dogmatism and skepticism are both, in a sense, absolute philosophies; one is certain of knowing, the other of not knowing. What philosophy should dissipate is certainty, whether of knowledge or ignorance.
- Bertrand Russell

User avatar
McCulloch
Site Supporter
Posts: 24063
Joined: Mon May 02, 2005 9:10 pm
Location: Toronto, ON, CA
Been thanked: 3 times

Re: url and parens issue

Post #2

Post by McCulloch »

I've run into this problem a few times. Here is a workaround:
Use the table at http://www.w3schools.com/tags/ref_urlencode.asp and encode the parentheses in the url

Code: Select all

[url=http://en.wikipedia.org/wiki/Caritas_%28charity%29]Caritas[/url]
Caritas
Examine everything carefully; hold fast to that which is good.
First Epistle to the Church of the Thessalonians
The truth will make you free.
Gospel of John

User avatar
otseng
Savant
Posts: 20846
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 214 times
Been thanked: 364 times
Contact:

Post #3

Post by otseng »

Fixed.

User avatar
ThatGirlAgain
Prodigy
Posts: 2961
Joined: Wed Jul 27, 2011 1:09 pm
Location: New York City
Been thanked: 1 time

Re: url and parens issue

Post #4

Post by ThatGirlAgain »

McCulloch wrote:I've run into this problem a few times. Here is a workaround:
Use the table at http://www.w3schools.com/tags/ref_urlencode.asp and encode the parentheses in the url

Code: Select all

[url=http://en.wikipedia.org/wiki/Caritas_%28charity%29]Caritas[/url]
Caritas
Thank you.

I believe you provided similar advice concerning the use of quote marks in urls, but then otseng made a change to fix it. I do not know if he can fix this one as easily but I was just pointing it out.
Dogmatism and skepticism are both, in a sense, absolute philosophies; one is certain of knowing, the other of not knowing. What philosophy should dissipate is certainty, whether of knowledge or ignorance.
- Bertrand Russell

User avatar
McCulloch
Site Supporter
Posts: 24063
Joined: Mon May 02, 2005 9:10 pm
Location: Toronto, ON, CA
Been thanked: 3 times

Post #5

Post by McCulloch »

otseng wrote: Fixed.
What good is it to be a nerdy propeller head, if you take away my opportunity to present complex counter-intuitive solutions to common problems?

Now what about the Image link? If I copy that link into my clipboard and paste, I get this

Code: Select all

ref:[url=http://debatingchristianity.com/forum/viewtopic.php?p=414404#414404]url%20and%20parens%20issue[/url]
ref:url%20and%20parens%20issue

In order to make it presentable, I have to reverse the above process thus:

Code: Select all

ref:[url=http://debatingchristianity.com/forum/viewtopic.php?p=414404#414404]url and parens issue[/url]
ref:url and parens issue.
Last edited by McCulloch on Thu Oct 27, 2011 1:56 pm, edited 2 times in total.
Examine everything carefully; hold fast to that which is good.
First Epistle to the Church of the Thessalonians
The truth will make you free.
Gospel of John

User avatar
ThatGirlAgain
Prodigy
Posts: 2961
Joined: Wed Jul 27, 2011 1:09 pm
Location: New York City
Been thanked: 1 time

Post #6

Post by ThatGirlAgain »

otseng wrote:Fixed.
You fixed it while I was typing a reply to McCulloch's workaround. Whoa! :bow:
Dogmatism and skepticism are both, in a sense, absolute philosophies; one is certain of knowing, the other of not knowing. What philosophy should dissipate is certainty, whether of knowledge or ignorance.
- Bertrand Russell

User avatar
otseng
Savant
Posts: 20846
Joined: Thu Jan 15, 2004 1:16 pm
Location: Atlanta, GA
Has thanked: 214 times
Been thanked: 364 times
Contact:

Post #7

Post by otseng »

McCulloch wrote: Now what about the Image link? If I copy that link into my clipboard and paste, I get this

Code: Select all

ref:[url=http://debatingchristianity.com/forum/viewtopic.php?p=414404#414404]url%20and%20parens%20issue[/url]
ref:url%20and%20parens%20issue

In order to make it presentable, I have to reverse the above process thus:

Code: Select all

ref:[url=http://debatingchristianity.com/forum/viewtopic.php?p=414404#414404]url and parens issue[/url]
ref:url and parens issue.
This one I'm not sure how to solve. In IE and Chrome, it copies without encoding the spaces. In Firefox and Safari, it converts the spaces to %20.

Post Reply