pub fn encode_url(data: &str) -> Result<String, Box<dyn Error>>
Expand description
Encodes a string into URL percent-encoded format.
ยงExamples
use nutek_encode_lib::encoder;
let encoded = encoder::encode_url("hello world!").unwrap();
assert_eq!(encoded, "hello%20world%21");