You are here: Strings > CharacterCodeExtractor

CharacterCodeExtractor

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 integer code of any Unicode character (from Basic Multilingual Plane), including non-printable ones.

Parameters

Example

For example, a CJK unified ideograph 东 character as the first character of the source string attribute would result in a value of 19996 (U+4E1C) being placed in the character code attribute.

Usage Notes

To obtain the character equivalent of a numeric value, use the CharacterEncoder transformer.

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.

Transformer Categories

Strings

Search FME Knowledge Center

Search for samples and information about this transformer on the FME Knowledge Center.