recode

Decode and re-encode data in a data extract.

Introduction

Use the recode enrichment to detect data that is encoded differently from a specified encoding type. The enrichment then decodes the data and re-encodes it in the specified encoding type

Creating the enrichment

For more information on creating an enrichment, see Using custom scripts.

Configuring the enrichment

To configure the enrichment, fill in the following fields. Required fields are marked with an asterisk (*).

Fields*

Enter the names of the columns which contain the values for which to check the encoding.

Charset

Select the encoding type which the values in the selected columns are compared against. If a value in the column does not match the selected encoding type, the values are decoded and then re-encoded in the selected encoding type.

Fail on Error

Select this option to stop the enrichment if an error occurs.

Subtable

Enter the name for a subtable that you want to contain the enriched data. The enrichment is applied to the whole data extract, then the enriched data is output into the subtable you have named here.

This subtable is a temporary table, which means it 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.