Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.2   8.3   8.4   8.5   9.0   9.1   9.2   9.3   9.4   9.5    Statistic  


Filters text to UTF-16.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Text 9.3 Yes Yes Yes Yes Yes
MBS( "Text.FilterUTF16"; Text { ; Replacement } )   More


Parameter Description Example value
Text The text to process. "Hello 😀 World"
Replacement Optional
Replacement text for invalid characters.
Default is empty.


Returns text or error.


Filters text to UTF-16.
Removes all UTF-32 characters which can't fit into UTF-16.
Normally UTF-32 range characters exceeding the UTF-16 range are stored as two characters in UTF-16.
This function removes those for software, which may not handle them correctly.


Remove emojis:

MBS( "Text.FilterUTF16"; "Hello 😀 World"; "[emoji]" )

Example result: "Hello [emoji] World"

Blog Entries

Release notes

Created 20th June 2019, last changed 20th June 2019

Text.FileExtensionToMimeType   -   Text.FindBetween

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins