Skip to main content

encode

Function encode 

Source
pub fn encode(text: &str) -> String
Expand description

Encodes Unicode as a STEP string literal body.

Printable ASCII is retained, apostrophes and backslashes are doubled, and BMP runs use UTF-16BE \X2\ notation and supplementary characters use UTF-32BE \X4\ notation.