Okay so some googling found me that the "xn--" means the rest of the hostname will be unicode, but why does é become -fsa in www.xn--googl-fsa.com. Google failed on the second part.
See https://en.wikipedia.org/wiki/Punycode#Encoding_the_non-ASCI...
51–60 of 99 posts
Okay so some googling found me that the "xn--" means the rest of the hostname will be unicode, but why does é become -fsa in www.xn--googl-fsa.com. Google failed on the second part.
See https://en.wikipedia.org/wiki/Punycode#Encoding_the_non-ASCI...
Why not just use `httpx`? If you're not bound to the stdlib, it's a great alternative to `requests` and url parse
rfc3986 may reject URLs which browsers accept, or it can handle them in a different way. WHATWG URL living standard tries to put on paper the real browser behavior, so it's a much better standard if you need to parse URLs extracted from real-world web pages.
Looking at the github site for can_ada, I discovered that the developers live in Montreal, Canada. Nice one.
Why not just use `httpx`? If you're not bound to the stdlib, it's a great alternative to `requests` and url parse
The Ada programming language is cursed with overlapping acronyms. GPS, ADA, SPARK, AWS. Seems it just got a little bit worse.
It is mindboggling to me how often developers create project names without even trying to search for precedent names in their own domain/industry . Calling this Ada is just ridiculous.
I'll also throw in that I've recently wrote bindings to Mozilla's servo URL library.
Those live at https://github.com/crate-py/url
They're not complete yet (meaning only the parsing bits are exposed, not URL modification) but I too was frustrated with the state of URL parsing.
Why not just use `httpx`? If you're not bound to the stdlib, it's a great alternative to `requests` and url parse
httpx is great, and "needs to be in base"
(It's not even a real standard -- it's a "living standard", which means it just changes randomly and there's no way to actually say "yes, you're compliant with that".)
Honestly to hell with the WHATWG's weird pseudo-standard. Backslashes? Five forward slashes? No one is sending those URLs around, and if they are, they should fix it. The only thing that needs to deal with that kind of malformed URL is the browser's address bar. If browsers want to do fixups on broken URLs at that point, they should feel free to, but it shouldn't pollute an entire spec. (It's not even a real standard…
Okay so some googling found me that the "xn--" means the rest of the hostname will be unicode, but why does é become -fsa in www.xn--googl-fsa.com. Google failed on the second part.
Because that's the Punycode representation: https://en.wikipedia.org/wiki/Punycode https://www.punycoder.com/
It's interesting because I just went down an apparent rabbit hole inplementing Byte-level encoding for using language models with unicode. There each byte in a unicode character is mapped to a printable character that goes up to 255 See https://github.com/openai/gpt-2/blob/9b63575ef42771a015060c9...
And the actual list of characters:
https://github.com/rbitr/llm.f90/blob/dev/phi2/phi2/pretoken...