Skip to main content

Encr_DecodeSafeAscii (function reference)

By April 20, 2023April 25th, 2023Online Help, Troi Encryptor Plug-in
Troi Encryptor Plug-in for FileMaker Pro

Encr_DecodeSafeAscii

Decodes a text in the SafeASCII format to the original text.

SyntaxFunction badge

Encr_DecodeSafeAscii ( switches ; text )

Parameters

switches reserved for future use, leave empty or set to "-Unused"
text the text to decode

Returned Result

Data type returned

Text

Result

the original text
OR
“$$-301 (Decoding Error)”, when the decoding failed.

Originated in

Troi Encryptor Plug-in 1.5

Compatibility

FileMaker Pro 16 to FileMaker Pro 2023

Considerations

See also: Encr_EncodeSafeAscii and Encr_EncodeShortSafeAscii.

Example

Set Field [ result ; Encr_DecodeSafeAscii ( "-Unused" ; 
  "this text is ignored!!!
    %Troi SafeAscii v1.0
     .V-PDon/Tt-Pforget-Pto-Phave-Pfun-\-PG.Pnther-Pand-PB/>rg-Q-P
   %End SafeAscii v1.0
   this text too..." ) ]

gives this result: “• Don’t forget to have fun, Günther and Børg! ”

Example 2

In a database you have defined a text field named “receivedEmail” which contains the body of an email which contains a part that is encoded as ASCII Safe. Then you can define a calculation field:

DecodedCalc   calculation     = Encr_DecodeSafeAscii ( "-Unused" ;  ReceivedEmail )

this field will contain the decoded text.

Used in example file

Safe.fmp12

Related functionsFunction badge

Encr_EncodeSafeAscii
Encr_EncodeShortSafeAscii

Related topics

Troi Encryptor Plug-in online help (overview)


Online Help Page for Troi Encryptor Plug-in for 16 to 2023 –> Encr_DecodeSafeAscii (encrp4241) 2023-0425 15:46:01