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:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
Text.ConvertUnicodeToCharacterComposition
Converts text by applying unicode character normalization.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| Text | 5.2 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Text | The text to process. | "Hello" |
Result
Returns text or error.
Description
Converts text by applying unicode character normalization.This function replaces character represented by decomposed representation with the composed representation.
see also
https://en.wikipedia.org/wiki/Unicode_equivalence
Examples
Test function:
#some text
Set Variable [$text; Value:"ä ö ü"]
#now make decomposed
Set Variable [$decomposedText; Value:MBS("Text.ConvertUnicodeToCharacterDecomposition"; $text)]
#and composed again
Set Variable [$composedText; Value:MBS("Text.ConvertUnicodeToCharacterComposition"; $decomposedText)]
#Now show results. See the 776 for the Diaeresis?
Show Custom Dialog ["Result"; $text & " " & MBS("Text.Characters"; $text) & ¶ & $decomposedText & " " & MBS("Text.Characters…]
Test character composition with ä and Char function:
MBS("Text.Characters"; MBS( "Text.ConvertUnicodeToCharacterComposition"; Char(97) & Char(776) ))
Example result: 228
See also
Example Databases
Blog Entries
Release notes
- Version 10.1
- Fixed bug with Text.ConvertUnicodeToCharacterComposition function not working for all characters.
Created 3th August 2015, last changed 14th February 2020
Text.ConvertToTextEncoding - Text.ConvertUnicodeToCharacterDecomposition
Feedback: Report problem or ask question.
Links
MBS Xojo blog