fixencoding
Decode or encode a data extract.
This guide explains how to configure the fixencoding instruction. To learn about another instruction, go back to the Available custom script instructions overview.
Introduction
Use the decode instruction to fix the encoding of a data extract. Alternatively, you can use this instruction to encode data into a certain encoding format.
Creating a custom script transformation using the fixencoding instruction
To create and configure a custom script using the fixencoding instruction, follow these steps:
-
In the Instructions step, select the fixencoding instruction.
-
To configure the custom script instruction, fill in the following fields. Required fields are marked with an asterisk (*).
-
Decode
-
Select the encoding format in which to decode the data. You cannot select this option if you are encoding the data in the same transformation.
-
Encode
-
Select the encoding format in which to encode the data. You cannot select this option if you are decoding the data in the same transformation.
-
Subtable
-
Enter the name for a subtable that you want to use within this custom script.
A subtable is a temporary table that only exists for this custom script. You can apply additional instructions within the same custom script to the subtable. However, the subtable cannot be used in any other custom scripts.
If a subtable does not exist for the current custom script, the transformation is applied to the data extract, and the enriched data is output into the subtable. If the subtable already exists for the custom script, the subtable is used as the input for the transformation and optionally as the output.