Skip to main content

encode_stdout_surrogateescape

Function encode_stdout_surrogateescape 

Source
pub fn encode_stdout_surrogateescape(text: &str) -> Cow<'_, [u8]>
Expand description

Encode a rendered stdout payload, re-materializing sentinel chars as their raw original bytes (the oracle’s stdout uses surrogateescape, so a lone surrogate prints as the byte that produced it). Borrow when no translation is needed.