CharacterCodeExtractor

From Fmepedia

CharacterCodeExtractor is a Workbench Transformer. Extracts the integral character code of the first character in the source string attribute, and adds its integer value in the character set to the feature as another attribute.

This can be used to obtain the ASCII code of any character, including non-printable ones. For example, a control-A character as the first character of the source string attribute would result in a value of 1 being placed in the character code attribute.

To take a numeric value and get its character equivalent, use the CharacterEncoder transformer.

User Comments Add a new comment