Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uri: punycode support #2

Open
dhasenan opened this issue Dec 6, 2015 · 1 comment
Open

uri: punycode support #2

dhasenan opened this issue Dec 6, 2015 · 1 comment

Comments

@dhasenan
Copy link

dhasenan commented Dec 6, 2015

Punycode is a way to encode arbitrary Unicode codepoints using ASCII. It's used for international domain names. Not supporting Punycode means an appreciable fraction of the Internet is pretty difficult to reach, if you want to have people enter something reasonably readable and get where they want to go.

For instance, the punycode encoding of "ﻞﻴﻬﻣﺎﺒﺘﻜﻠﻣﻮﺸﻋﺮﺒﻳ؟" is "xn--egbpdaj6bu4bxfgehfvwxn". A human cannot reasonably interpret between the two, so it is unacceptable for me to ask my users to enter the puny-encoded version of a URL.

@rikkimax
Copy link
Owner

I've had a bit of a think and looked into Punycode a bit more.
It is a form of encoding meant for domain names. As such given its broad usage and non URI specific code, I won't be adding it to std.experimental.uri.

However, if you are interested in taking ownership of a std.experimental.punycode I would be happy to write it. You would be change of getting it into Phobos should you want to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants