-
Notifications
You must be signed in to change notification settings - Fork 299
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
Should http::Uri handle IDNA? #259
Comments
That's a good question. What would be involved if we were to say that this crate should handle it? What are the use cases? What should this crate do if it were decided to not handle IDNA? I don't believe a server needs to handle this, as the recurved URI should have been encoded correctly. So is it mostly for clients? |
See sagebind/isahc#381 and related sagebind/isahc#382 for why this is relevant. Non-ASCII domain names become more and more wide-spread, and for a good reason. So I hope someone can find a good way to accept parse non-ASCII strings as Uris. |
I try to fix this issue via allow unicode in uri: #565 PTAL. |
@Xuanwo , it seems to me your pull request was closed but never accepted into the http crate, or am I misunderstanding Github? |
Yes. I gave up for working on fixing this issue any more. Feel free to reuse my work. |
It looks like #565 didn't implement Nameprep (Unicode "lowercasing" and normalization), so that's not a complete implementation of IDN for some languages. Implementing Nameprep means shipping a Unicode normalization table, which has significant impacts on binary size. Some platforms have ways of dealing with this (
Having |
@seanmonstar Would you be open to a PR for this? |
@kirawi actually, @micolous opened a PR servo/rust-url#887 |
I don't think that's what this issue is about. AFAICT, this issue is about adding IDNA support for the |
Or should it delegate it to the
url
crate somehow?The text was updated successfully, but these errors were encountered: