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

Use IRI module for IDN support #2

Open
jonassmedegaard opened this issue Dec 24, 2014 · 4 comments
Open

Use IRI module for IDN support #2

jonassmedegaard opened this issue Dec 24, 2014 · 4 comments

Comments

@jonassmedegaard
Copy link

Hi,

You mention interest in supporting IDN. Recently the IRI module was introduced, and I suspect that is exactly what you would need for that :-)

@jonassmedegaard
Copy link
Author

@jonassmedegaard
Copy link
Author

Hmm - or perhaps adequate (and faster) to use URI->ihost

@jonassmedegaard
Copy link
Author

Ahh - this is probably the most elegant (supported since URI 1.50):

perl -MURI -E 'say URI->new("http://xn--99zt52a.example.org/%E2%80%AE")->as_iri'

@jonassmedegaard
Copy link
Author

More info on difference between IRI and URI->as_iri, see kasei/perl-iri#2 (comment)

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

1 participant