Skip to main content

make_valid_utf8

Function make_valid_utf8 

Source
pub fn make_valid_utf8(str: Expr) -> Expr
Expand description

Returns the original string if str is a valid UTF-8 string, otherwise returns a new string whose invalid UTF8 byte sequences are replaced using the UNICODE replacement character U+FFFD.