4

I've answered a question on SO here. Embedded are two seemingly identical hyperlinks - but only one appears in markdown preview. Same when the page is returned from the server. The first was typed, the second pasted - after googling for the wikipedia page for 'Model-View-Controller'. Both links can be seen in the source.

Browser is Safari on OS X.

What's going on there?

2 Answers 2

2

It is the dashes; they are right (45) in the first link, and wrong (8211 = en-dash) in the second. Change the dashes. Did you copy them from the same place?

5
  • Thanks for that Mark - I googled for MVC, visited the wikipedia page, and pasted in the url to the popup box. Then when it didn't work I typed it in. Commented Sep 23, 2010 at 6:28
  • @martin - indeed, wiki does have an en-dash version of the same page, but when I copy the URL in Chrome the url is correctly escaped to en.wikipedia.org/wiki/Model%E2%80%93View%E2%80%93Controller Commented Sep 23, 2010 at 6:38
  • @martin often the plain-ascii equivalent also works in wikipedia urls Commented Sep 23, 2010 at 7:54
  • interesting, time to update my Chrome and give it a spin. I was using Safari on OS X. Firefox escapes as does Chrome. I should have made the deductive leap from 'I see no differences' to 'the difference must be invisible'... Thanks again. Commented Sep 23, 2010 at 9:34
  • @Jeff - thanks - the ascii equivalent does indeed work here. Seems like Safari is somewhat lacking when it comes to copy-paste of URLs from the address bar with chars that need to be escaped. Commented Sep 23, 2010 at 22:18
2

As of recently, when entering a link via the button (or Ctrl-L), the characters will automatically be escaped.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.