Function utf8_escape¶
Defined in File utf.h
Function Documentation¶
-
string
utf8_escape
(string dest, string src, bool escape_quotes)¶ Convert a string containing UTF-8 to ASCII with escape sequences.
- Return
Slice of
dest
string with correct length.- Parameters
[out] dest
: Empty string structure.[in] src
: String containg valid UTF-8.[in] escape_quotes
: If true, quotation-marks will have backslashes prepended too.