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
Percent encoding: here's a test case with a couple failures #32
Comments
Thanks for this as well. A few things:
The reason 2 has been solved with a setting is that I don't believe most people actually want to get the raw + in the resulting variable. For those that do, they can ask JLRoutes not to decode plus symbols and the value will come through as expected. |
What if I needed %2F to be supported? What should I do? |
From w3c ASCII Encoding Reference, the plus(+) encode to %2B, space encode to 20%, as |
For sometimes, space encode to +, as Wikipedia says, https://www.wikiwand.com/en/Percent-encoding#The_.60application.2Fx-www-form-urlencoded.60_type for these cases, it needs an option to replace the plus to space, but it should work in the beginning, e.g. before Also, from RFC 3986, + is a remaining character, for most cases space will be encoded to %20, not plus, so I think Thanks. |
I'm having problems with quoting slash (/) and plus (+). I looked at the code a bit; the problem seems to be pathComponents doing some unquoting. I think this is why Apple have now introduced NSURLComponents, but that doesn't help if you want to be compatible with older versions. Here's a test case you can drop into your test .m file to demonstrate:
The text was updated successfully, but these errors were encountered: