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

Should normalize IDN properly #17

Closed
dentarg opened this issue Sep 5, 2014 · 0 comments
Closed

Should normalize IDN properly #17

dentarg opened this issue Sep 5, 2014 · 0 comments

Comments

@dentarg
Copy link
Collaborator

dentarg commented Sep 5, 2014

twingly-url should normalize internationalized domain names (IDN) properly.

[13] pry(main)> Twingly::URL::Normalizer.normalize "http://www.åäö.se"
=> ["http://www.åäö.se/"]

[18] pry(main)> Addressable::URI.parse("http://www.åäö.se").normalize.to_s
=> "http://www.xn--4cab6c.se/"

Here is how the addressable gem does it:

@dentarg dentarg changed the title Should normalize IDN Should normalize IDN properly Sep 5, 2014
@roback roback closed this as completed in 177d86e Sep 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants