New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
URI#display_uri raises ArgumentError: invalid byte sequence in UTF-8 #224
Comments
Temporary fix for #62. Related to sporkmonger/addressable#224
These are some gross URIs. 😝 That said, I'm not sure I think this is a bug. Given what
|
This doesn't reproduce anymore, closing irb(main):004:0> Addressable::VERSION::STRING
=> "2.8.1"
irb(main):005:0> Addressable::URI.parse("http://example.com%C2").display_uri
=> #<Addressable::URI:0x86c4 URI:http://example.com%C2/>
irb(main):006:0> Addressable::URI.unencode("http://%D5.example.com")
=> "http://\xD5.example.com" Probably due to the changes made in #459 |
Addressable::URI#display_uri
raisesArgumentError
when called on the urlhttp://example.com%C2
. The same happens forhttp://%D5.example.com
.I get the same error both with and without IDNA:
The cause seems to be calling
Addressable::URI.unencode
for the above urls which results in a string that Ruby doesn't seem to like:The text was updated successfully, but these errors were encountered: