I am trying to use urlencoding to decode the url datetime like this:
fn main() {
let result = urlencoding::decode("gmt_create=2024-05-05+11%3A14%3A19");
print!("{}",result.unwrap_or_default().into_owned());
}
the url params was very long. how to make the date and time concat with whitespace? without using + . This is the cargo.toml:
[dependencies]
urlencoding = "2.1.3"
I’d like this result may look like this: gmt_payment=2024-05-05 00:05:28
.