toUSVString

external fun toUSVString(string: String): String(source)

Returns the string after replacing any surrogate code points (or equivalently, any unpaired surrogate code units) with the Unicode "replacement character" U+FFFD.

Since

v16.8.0, v14.18.0