util_utf8_make_valid


Description:


[ Version ( since = "3.0" ) ]
public string util_utf8_make_valid (string? str)

Returns a newly-allocated copy of str, with invalid characters replaced by Unicode replacement characters (U+FFFD).

For null str returns newly allocated empty string ("").

Parameters:

str

a UTF-8 string

Returns:

a newly-allocated string


Namespace: E