CheckUTF8MBS function
It works like DefineEncoding with encodings.UTF8, but it makes sure that all the bytes are valid UTF-8. You can just drop in our function and pass the placeholder you need to replace invalid bytes. Like in this example which uses a random string:
// some random bytes
dim t as string = RandomBytesStringMBS(20, false)
// and some text
t = t + " äöü 😀"
// checked
dim s as string = CheckUTF8MBS(t, "😂")
MsgBox s
If you like to try, please email me, so I can send you a new MBS Util Plugin copy.