Platforms to show: All Mac Windows Linux Cross-Platform

ReplaceNonPrintableCharactersMBS(s as string, replacevalue as Integer=46) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 8.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Replaces bytes in the string which are not printable with the given byte value.
Example
MsgBox ReplaceNonPrintableCharactersMBS("Hello World")
MsgBox ReplaceNonPrintableCharactersMBS("Hello äöü World")
MsgBox ReplaceNonPrintableCharactersMBS("Hello äöü World",32)

All bytes in range 32 to 127 are copied and all others replaces with the given byte value. Default is 46 which is a dot.
Returns always an ASCII string.
On low memory this function returns an empty string.

Some examples using this global method:

Blog Entries

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...