Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  

Text.InvalidCharactersForEncoding

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

Parameters

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.
"Latin1"

Result

Returns text or error.

Description

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.

Examples

Check if checkmark is allowed in Latin1:

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

Example result: ✔

Checks for characters:

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

Example result: μέρος

Blog Entries

Created 14th June 2015, last changed 21st June 2021


Text.FromStyles - Text.JaroWinklerDistance

Feedback: Report problem or ask question.