@wtasnorg/node-lib / toValidUTF8String
toValidUTF8String(
s,replacement):string
Defined in: src/strings.ts:1018
ToValidUTF8 returns a copy of the string s with each run of invalid UTF-16 code units (lone surrogates) replaced by the replacement string, which may be empty.
string
Input string.
string
Replacement string for invalid sequences.
string
String with invalid sequences replaced.