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

Text.FilterSwissQRCode

Filters characters for Swiss QR code for payments.

Component Version macOS Windows Linux Server iOS SDK
Text 14.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.FilterSwissQRCode"; Text )   More

Parameters

Parameter Description Example
Text The text to filter.

Result

Returns OK or error.

Description

Filters characters for Swiss QR code for payments.
We pass through allowed characters:
  • Basic-Latin (Unicodepoint U+0020 - U+007E)
  • Latin1-Supplement (Unicodepoint U+00A0 - U+00FF)
  • Latin Extended-A (Unicodepoint U+0100 - U+017F)
And these individual characters:
  • Ș - (LATIN CAPITAL LETTER S WITH COMMA BELOW, Unicodepoint U+0218)
  • ș - (LATIN SMALL LETTER S WITH COMMA BELOW, Unicodepoint U+0219)
  • Ț - (LATIN CAPITAL LETTER T WITH COMMA BELOW, Unicodepoint U+021A)
  • ț - (LATIN SMALL LETTER T WITH COMMA BELOW, Unicodepoint U+021B)
  • € - (EURO SIGN, Unicodepoint U+20AC)

For other characters, we try to translate them to allowed characters, e.g ¼ is changed to 1/4.

Examples

Filter some text:

MBS( "Text.FilterSwissQRCode"; "Hello World ≤ «∑€®†Ω 日本国" )

Example result: Hello World <= «€®

This function checks for a license.

Created 26th September 2024, last changed 26th September 2024


Text.FilterASCII - Text.FilterUTF16