-
Notifications
You must be signed in to change notification settings - Fork 325
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
cx.param
into a string doesn't handle url-decoding
#281
Comments
Notes from triage: we should probably introduce a new API using https://docs.rs/serde_qs/0.5.0/serde_qs/ for this: let params: MyType = cx.query(); Similar to how our current |
When I wrote the I wonder if we can resolve at least a portion of this issue by updating to that library. |
|
Uh what, how did me commenting that unassign him? |
Is there a recommendation in the mean time for how to easily percent-decode parameters when fetching from Tide? |
When using
cx.param
to extract strings, I expected it to handle URL decoding for me. However, it did not. I would up writing some fairly complex code to deal with this. In general, I would expect this to be the default, with some way to request the "raw string" if I really wanted to get that, but at least there should be some super ergonomic way to "url-decode" your request parameters.Question
Is this by design? Am I overlooking a simple way to do url-decoding?
Additional context
This is part of a flashcard app. The incoming request parameters are sometimes in other languages, so they are url-encoded utf-8.
The text was updated successfully, but these errors were encountered: