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

url() renerate illegal chars #111

Open
VatslauX opened this issue Aug 10, 2018 · 2 comments
Open

url() renerate illegal chars #111

VatslauX opened this issue Aug 10, 2018 · 2 comments

Comments

@VatslauX
Copy link

public static String randomUrl(Boolean isHttps) {
NetworkProducer net = Fairy.create().networkProducer();
return net.url(isHttps);
}

Result
https://������������.com
intellij idea 2018-08-10 10 11 36

@tehbilly
Copy link

Those unicode characters aren't illegal in a domain name, are they? Firefox at least (what I'm using, haven't tested others) translates that properly to https://xn--zn7caaaaaaaaaaa.com/ for me.

Some reference info: https://en.wikipedia.org/wiki/Internationalized_domain_name

@VatslauX
Copy link
Author

Well in general You right.
But probably it will be nice to have 2 methods - one for Unicode, second - real addresses for humans
not this)
image

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