-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature: Get URL (and parts of it) in ASCII #71
Comments
And because our own |
Don't we really want a "to punycode" method somewhere? |
That would be better. I'm guessing it would be nice to get both |
I'm not really following... Is it something like this what we mean? Twingly::URL.parse("http://räksmörgås.josefßon.org/foobar").to_punycode
# => "http://xn--rksmrgs-5wao1o.josefsson.org/foobar" How should we implement it? Should we use http://www.rubydoc.info/gems/addressable/Addressable/URI#normalized_host-instance_method or not? In my mind that's the most straight forward and lowest cost thing to do Please elaborate your thoughts! :) |
I haven't read everything at https://en.wikipedia.org/wiki/Punycode, but in my mind we only care about Punycode in the context of DNS, the host that is. Maybe we want a method called |
Yes.
DNS is a part of HTTP.
Not until we've looked at alternatives. If you need this feature now just use |
The title of this issues is now less opinionated. |
The punycoded TLD would also be nice to have when dealing with Internationalized ccTLDs. |
I'm merging in #72 here, it's the same thing
|
Dumping related/interesting links: https://bugs.ruby-lang.org/issues/12852, https://url.spec.whatwg.org/ |
Heh, I see that Pinboard says "previously saved october 2015" about the above URL and the page now says "Last Updated 25 October 2018". It sure takes some time to compile a solid standard. |
Related to https://github.com/twingly/klondike/issues/31
Would be useful to expose
#normalized_host
from Addressable, because Ruby DNS libraries (stdlib, alexdalitz/dnsruby#94) can't handle IDN very well (not at all I mean).The text was updated successfully, but these errors were encountered: