Encr_DecodeSafeAscii | 
Decodes a text in the SafeASCII format to the original text.
Syntax
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 functions
| Encr_EncodeSafeAscii | 
| Encr_EncodeShortSafeAscii | 
Related topics
Troi Encryptor Plug-in online help (overview)