utf8_make_valid
Description:
Validate that the provided string is valid UTF8.
If not, replace all invalid bytes with unicode replacement character (U+FFFD).
This method is a verbatim copy of glib's internal _g_utf8_make_valid() function, and will be deprecated as soon as the glib one becomes public.
Parameters:
name |
string to coerce into UTF8 |
Returns:
a new valid UTF8 string |
Namespace: TelepathyGLib
Package: telepathy-glib