Sitemap-Generator-Crawler
Sitemap-Generator-Crawler copied to clipboard
allow to validate non ascii urls (fixes #57)
Add function url_to_ascii that converts utf8 url to plain ascii one.
This covers domains but not URL paths.
Half way there.
I'm trying to test this but idn_to_ascii
isn't on my system.. I have pretty standard install and the function is visible on the official docs without the need for any extensions. I have a fairly standard install too so this is strange.
This cannot be merged without a shim.
idn_to_ascii is related to the intl extension. We could use pure php shim with an external library like https://github.com/phlylabs/idna-convert as the converstion rules are a bit complicated.