Registry / networking / percent-encoding

percent-encoding

JSON →
library2.3.2rscratesunverified

Percent encoding and decoding for URLs.

# Cargo.toml [dependencies] percent-encoding = "2.3.2"
INSTALL
IMPORT
SIG · PERCENT-ENCODING
P
percent-encoding
networkingrustv2.3.2
harness data pending
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.

Upgrade
Version history
2.3.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
percent-encoding — cargo add percent-encoding · libregistry