Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Looks for invalid characters for an encoding.

Component Version macOS Windows Linux Server iOS SDK
Text 5.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.InvalidCharactersForEncoding"; text; Encoding )   More


Parameter Description Example
text The text to process. "Hello World"
Encoding The text encoding for the resulting string.
Default is native.
Possible encoding names: ANSI, ISO-8859-1, Latin1, Mac, Native, UTF-8, DOS, Hex, Base64 or Windows. More listed in the FAQ.


Returns text or error.


Looks for invalid characters for an encoding.
Checks the text to return all characters which are not preserved when converting text to given text encoding.
Returns an empty text if all characters are supported in given encoding. The returned text should have no duplicates, so each character shows only once in the order of first appearance.
Some characters may not be directly supported, but still convert to similar looking characters.


Check if checkmark is allowed in Latin1:

MBS("Text.InvalidCharactersForEncoding"; "Hello ✔ äöü"; "Latin1" )

Example result:

Checks for characters:

MBS("Text.InvalidCharactersForEncoding"; "μέρος"; "Latin1" )

Example result: μέρος

Checks emojis:

MBS( "Text.InvalidCharactersForEncoding"; "Test 🍎 🍓 🍒"; "ISO-8859-1" )

Example result: 🍎🍓🍒

Blog Entries

This function checks for a license.

Created 14th June 2015, last changed 31st January 2023

Text.IdentifyData - Text.JaroWinklerDistance