Problem with URLs

A place for Site Announcements, Suggestions, Bug Reports and Unadulterated Praise..
Post Reply
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Problem with URLs

Post by pogo »

This Wikipedia page

Winter of 2009–10 in Great Britain and Ireland

If paste the URL in directly it breaks it

https://en.wikipedia.org/wiki/Winter_of ... ed_Kingdom

If I wrap it in tags it still doesn't work, either way:

https://en.wikipedia.org/wiki/Winter_of ... ed_Kingdom

Winter of 2009–10 in Great Britain and Ireland

It's clearly the dash, formally an n-dash, between the years that's the problem. It displays it fine but the part that deals with URLs doesn't recognise it. URLs like this are uncommon on the general internet but very common on Wikipedia
User avatar
Jimaroid
Baaaaaaa!
Baaaaaaa!
Posts: 5146
Joined: Fri May 09, 2003 12:21 pm 0
Location: Dundee

Re: Problem with URLs

Post by Jimaroid »

Replace the n-dash with %96

phpBB doesn't parse the unicode characters in URLs properly
User avatar
rowan
Baaaaaaa!
Baaaaaaa!
Posts: 7963
Joined: Tue Nov 25, 2003 11:53 pm 0
Location: Notts.

Re: Problem with URLs

Post by rowan »

Ahh unicode, unicode. Seems a few things we've noticed recently here concern it.

I'm reminded of this thread [NOT trying to snipe at you pogo, just the point Daniel made that things pop up & bite people [like phpbb's developers]]
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Problem with URLs

Post by pogo »

Any update on this? I mean this is the 21st century; Unicode has been a part of computer operating systems for that long, and common on the web for half that time. I can input 中文 but not common English non-ASCII characters.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Problem with URLs

Post by gravy »

Put it in a link shortner and use the URL tag to link

We use off the shelf bulletin board software so I'm a bit loath to trawl through the PHP and make bespoke changes to the URL parser.
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Problem with URLs

Post by pogo »

That fixes the problem but I'm loth to use them; apart from the extra effort they're bad design from the point of view of knowing what you click on. Someone might wonder if they see it what I'm hiding, i.e. is it a malicious link? And if they become commonplace here it will become easier for people to hide misleading links, which can range from the annoying to the dangerous.

I had a quick look at it yesterday, looking through their bug database for any bugs on it but could not find any. That might be the easiest way to address it; create a bug for it or comment/vote on an existing one, so it gets onto the radar of someone familiar with the code able to fix it to work normally with Unicode.
User avatar
gravy
Sheepie Whore
Sheepie Whore
Posts: 19572
Joined: Wed May 01, 2002 1:28 pm 0
Location: The Other Place

Re: Problem with URLs

Post by gravy »

What articles have em dashes in them on wikipedia? I've seet a lot with subtraction signs.

Have you gto a link?

EDIT

I just tried the one above, it works with a subtraction sign in:

https://en.wikipedia.org/wiki/Winter_of ... ed_Kingdom
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Problem with URLs

Post by pogo »

A whole heck of them have n-dashes – one of the things that's been happening slowly but religiously is people going round fixing them, so anything which has a range in the title for example, which includes many historical articles, should use a dash not a hyphen. E.g.:

https://en.wikipedia.org/wiki/1965–66_L ... .C._season

As you can imagine there are a lot like that for teams and seasons.

They may have redirects with a minus sign but noticing that's needed than tracking it down is a bit of work. A less obvious example that also doesn't work (It's a valid link: 中文 is Chinese for Chinese language and the link redirects there).

https://en.wikipedia.org/wiki/中文

You also get non-ASCII characters in domain names now. This is quite new and not that widespread as far as I know but that just means it has lots of scope to grow and take off. This following is just a placeholder at the moment but is a perfectly valid URL:

http://中文.com
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Problem with URLs

Post by pogo »

It’s been fixed, apparently:

https://wiki.phpbb.com/Release_Highlights/3.1.3

Support for IDN (IRI) Urls - Urls in BBCodes, posts and profile fields can now contain UTF8 characters

Which would seem to fix the problem. A fuller description is here:

http://area51.phpbb.com/phpBB/viewtopic ... 08&t=42633

Hardly enough reason to update the software on its own but perhaps another reason to upgrade if it’s being considered.
User avatar
Misfit
Sheepie Whore
Sheepie Whore
Posts: 10446
Joined: Sat Sep 28, 2002 2:43 pm 0
Location: Nottingham UK
Contact:

Re: Problem with URLs

Post by Misfit »

pogo wrote: Hardly enough reason to update the software on its own but perhaps another reason to upgrade if it’s being considered.
Like to add a mobile friendly skin....?
User avatar
Flojomojo
Baaaaaa!
Baaaaaa!
Posts: 2341
Joined: Mon Jul 29, 2002 6:21 am 0
XBL Gamertag: jindofox
PSN: jindofox
Location: Washington DC, USA

Re: Problem with URLs

Post by Flojomojo »

Misfit wrote:
pogo wrote: Hardly enough reason to update the software on its own but perhaps another reason to upgrade if it’s being considered.
Like to add a mobile friendly skin....?
My thoughts exactly
User avatar
pogo
Sheepie Whore
Sheepie Whore
Posts: 14180
Joined: Tue Sep 10, 2002 8:28 pm 0
Yahoo Messenger: BrassSparrow
Location: County Durham

Re: Problem with URLs

Post by pogo »

One more example - thankfully I used preview so spotted it.

http://www.yakyak.org/viewtopic.php?p=1633986#p1633986

This will happen more and more
Post Reply