Problem with url

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

Problem with url

Post #1

Post by ThatGirlAgain »

A quote in the url screws things up

http://en.wikipedia.org/wiki/The_Emperor's_New_Mind

http://en.wikipedia.org/wiki/The_Emperor's_New_Mind

The Emperor's New Mind

But c/p the url into a browser tab and it works fine.

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

Post #2

Post by McCulloch »

The solution is to encode the special characters.
A nice reference can be found at the W3Schools site.

Code: Select all

[url=http://en.wikipedia.org/wiki/The_Emperor%27s_New_Mind]Wikipedia: The Emperor's New Mind[/url]  
Wikipedia: The Emperor's New Mind
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 #3

Post by ThatGirlAgain »

McCulloch wrote:The solution is to encode the special characters.
A nice reference can be found at the W3Schools site.

Code: Select all

[url=http://en.wikipedia.org/wiki/The_Emperor%27s_New_Mind]Wikipedia: The Emperor's New Mind[/url]  
Wikipedia: The Emperor's New Mind
Like %20 for blanks. I was too lazy to look up single quote. tiny.cc is my friend.

Interesting that the 'naked' quote mark is acceptable in a browser but a blank is not, whereas bbcode requires the substitution.
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: 363 times
Contact:

Post #4

Post by otseng »

OK, I think I fixed it. The code change wasn't too difficult. (But hopefully I didn't break anything else.)

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

Post #5

Post by ThatGirlAgain »

otseng wrote:OK, I think I fixed it. The code change wasn't too difficult. (But hopefully I didn't break anything else.)
I looked at my OP again. All the links look good now.

Thank you. O:)
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 #6

Post by McCulloch »

ThatGirlAgain wrote: Interesting that the 'naked' quote mark is acceptable in a browser but a blank is not, whereas bbcode requires the substitution.
The modern browsers have had more developers and users to tweak this kind of stuff than phpBB.
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 #7

Post by ThatGirlAgain »

McCulloch wrote:
ThatGirlAgain wrote: Interesting that the 'naked' quote mark is acceptable in a browser but a blank is not, whereas bbcode requires the substitution.
The modern browsers have had more developers and users to tweak this kind of stuff than phpBB.
And I am even using IE. :)
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

Post Reply