Encode and Decode

Encode a string into another format or decode an encoded string. These functions change data format for system compatibility (such as ASCII or base64), while preserving its meaning.

Example use case

When sending data to a system that requires a base64 encoded value, the encode function converts the string value in MXO to base64 before sending it out. Conversely, when retrieving data from a system that only sends it in base64, the decode function allows that translation.

Encode example eligibility rule

encode Survey ID using base64    

Encode function example

Decode example eligibility rule

decode Survey ID using base64    

Decode function example