« Using CURL with Roset… | Home | Encrypted Access data… »

CheckUTF8MBS function


We got a new function which may be helpful for you: CheckUTF8MBS

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.
18 01 16 - 09:33
No comments

  
Remember personal info?

Emoticons / Textile


Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.