jfairy
jfairy copied to clipboard
url() renerate illegal chars
public static String randomUrl(Boolean isHttps) { NetworkProducer net = Fairy.create().networkProducer(); return net.url(isHttps); }
Result
https://.com
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
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)