2

See my answer here (How to randomize (shuffle) a JavaScript array?).

I've edited in a link to a wikipedia article which refuses to show up. Can't see anything wrong with this entry?

1 Answer 1

5

Your original URL (http://en.wikipedia.org/wiki/Fisher–Yates_shuffle) contained an en dash character (Unicode 8211, –, etc...), and SO's Markdown engine tends to get confused by such characters in URLs.

Fortunately, the link works just as well with a hyphen (-), so I just replaced it.

You might find it helpful that Firefox will automatically escape such characters when you copy the URL out of the address bar, because so many sites have problems with them. The escaped form looks like this:

http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle
3
  • Perfect, thanks. I failed to notice that the dash was a bit funky (copy-pasted the link). Thanks for fixing! Mar 15, 2010 at 22:58
  • For completeness sake: the browser used was Safari 4.0.5 which does not seem to automatically escape copy-pasted urls. Mar 15, 2010 at 23:02
  • Most browsers don't escape legal URLs. Some (cough IE cough) won't even reliably escape illegal URLs. Firefox tends to be more aggressive than it needs to be, purely because so many users get strung up by simplistic URL-recognition expressions otherwise (the better short-term solution is for sites to stick to non-reserved 7-bit ASCII in their URLs, but the time approaches when sites will have to start accepting more interesting characters...)
    – Shog9
    Mar 15, 2010 at 23:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .