Skip to main content

unicode_encode

Function unicode_encode 

Source
pub fn unicode_encode(payload: &str) -> String
Expand description

Unicode encoding — each character becomes \uXXXX.

Context: ONLY safe when the target parser performs JSON/JavaScript decoding. Using this on raw HTTP parameters will send a literal backslash-u sequence.