Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
percent_decode
✓ use percent_encoding::percent_decode;
Encode and decode percent-encoded strings.
use percent_encoding::{percent_decode, percent_encode, NON_ALPHANUMERIC};
fn main() {
let input = "hello world";
let encoded = percent_encode(input.as_bytes(), NON_ALPHANUMERIC).to_string();
println!("Encoded: {}", encoded);
let decoded = percent_decode(encoded.as_bytes()).decode_utf8().unwrap();
println!("Decoded: {}", decoded);
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.