jfairy icon indicating copy to clipboard operation
jfairy copied to clipboard

url() renerate illegal chars

Open VatslauX opened this issue 6 years ago • 2 comments

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

VatslauX avatar Aug 10 '18 07:08 VatslauX

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

tehbilly avatar Aug 15 '18 13:08 tehbilly

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

VatslauX avatar Aug 15 '18 15:08 VatslauX