Percent-encoded hosts #1611
Unanswered
decorator-factory
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it intentional that the host part of the URL is not percent-decoded? For example:
According to RFC 3986:
Here's how some other URL parsing libraries behave:
furl.furl("http://%d0%b1%d0%b0%d0%bd%d0%b0%d0%bd.com")raises an exception (clearly a bug IMO)urlpackage successfully parses the host asбанан.com(and returns the punycoded host name)URLdoes the same as the Rust'surland decodesбанан.com(following the URL Standard)Beta Was this translation helpful? Give feedback.
All reactions