7

In my question I wanted to link to

http://ldn.linuxfoundation.org/blog-entry/aligning-filesystems-ssd’s-erase-block-size

and it didn't work. Note that the link as displayed here

http://ldn.linuxfoundation.org/blog-entry/aligning-filesystems-ssd’s-erase-block-size

ends before the apostrophe. Note that the apostrophe is not \u0027 so I can't replace it with %27. I don't know how to escape unicode in URLs in general, and I don't think I should have to. Markdown works normally very well, so it should be able to handle this, too, shouldn't it?

2
  • possible duplicate of Super User does not detect links which use internationalized domain names.
    – Sathyajith Bhat Mod
    Commented Jan 26, 2011 at 14:06
  • Note to those considering voting to close as a dup of 1514: These questions are not really related. 1514 deals with Unicode in the hostname part of an HTTP URL. This question is about Unicode in the path part of an HTTP URL. They are handled differently. The former uses punycode, while the later is less standardized, but usually uses percent encoded UTF-8. Commented Jan 27, 2011 at 3:31

2 Answers 2

5

As a workaround, consider using a URL shortener such as bit.ly

5
  • Aren't there legal/censoring issues with libyan domain names?
    – Daniel Beck Mod
    Commented Jan 26, 2011 at 16:23
  • None that I am aware of @DanielBeck
    – Sathyajith Bhat Mod
    Commented Jan 26, 2011 at 16:44
  • I checked -- it was a URL shortening service that specifically allowed linking to NSFW content. This likely won't be an issue on SuperUser.
    – Daniel Beck Mod
    Commented Jan 26, 2011 at 16:54
  • I would not use an URL shortener in this trivial case.. if it's a Wolfram Alpha crazy ass URL then maybe, but not for a single ' Commented Jan 27, 2011 at 12:24
  • Actually, the bit shortener is the only universal solution, that's why I accept this answer. The other is nicer and solves my problem as well, I know. But I'm not going to search for a different solution in case somebody makes a URL "fancy" in another way.
    – maaartinus
    Commented Jan 31, 2011 at 6:17
8

If you still wonder how to do it... This one works!

It uses: %E2%80%99

Tool used: Meyer Web - Eric - Tools - URL Decoder/Encoder

See also: Unicode Character 'RIGHT SINGLE QUOTATION MARK' (U+2019)

You must log in to answer this question.

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