4

Further to Tim Stone's response to my bug report regarding what turned out to be an en dash in an URL: Would it be reasonable for markdown mini to replace en dashes with normal hyphens? Or is that Wikipedia article's URL just a fluke?

  • I wouldn't have thought it would be a problem often encountered. – Rory Apr 1 '12 at 16:28
  • 2
    I seem to remember it being a pretty wide-spread problem with Wikipedia URLs once upon a time, but I don't know if it's still prevalent. That aside, doing the replace shouldn't be too difficult, and this might be a special case worth handling if only for the fact that the two characters are somewhat hard to distinguish in the edit box unless they're side-by-side. – Tim Stone Apr 1 '12 at 16:34
6

No, that would be just wrong. We have, however, changed the handling of not-whitelisted characters in those URLs from "just remove" to "percent-encode", which obviously solves your original problem as well (and others), while not changing the URL – on Wikipedia, different dash kinds may be equivalent, but this probably is not the case everywhere.

| improve this answer | |
  • You and your common sense, bah! Although Wikipedia is the only place I can ever remember seeing dashes in URLs before anyway (and I've seen the entire internet, or something), this is indeed a much saner solution. – Tim Stone Apr 1 '12 at 17:03
  • So I can assume this "bug" will be fixed as well, any time soon? – slhck Apr 1 '12 at 17:08
  • 1
    @slhck Notice that I gave that very post as an example. Edit: Oops, I wanted to. I pasted the wrong link. Fixed. The answer is yes. – balpha Apr 1 '12 at 17:13
  • Ah, this is welcome change indeed! – Shog9 Apr 1 '12 at 18:56
  • Perfect solution. Thanks. – SSteve Apr 1 '12 at 19:21

You must log in to answer this question.

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