![]() |
VOOZH | about |
func ToValidUTF8(str, rep string) stringHere, str is string which may contain invalid UTF-8 and rep is the replacement string. Return Value: It returns the replaced string. Example 1: Output:
This is GeeksForGeeksExample 2: Output:
GeeksForGeeks