Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: awilliams1024Hi,
The attached data flow has a composite node that replaces specified accented characters with their equivalent 'simplified' characters and maintains the case.
By default, all of the fields in the input data are processed. Alternatively, you can specify the list of fields to be processed.
If you specify the fields then any remaining (unspecified) input fields are dropped from the output data.
All processed fields are output with a unicode data type.
Replace_Accented_Characters--share.brg
Note: the node does not support multi-byte unicode characters.
The character replacements are defined in the 'Process Fields' node within the composite.
You can modify the two strings '_Acc_Chars' and '_Reg_Chars' as required. They are currently set as:
_Acc_Chars= unicode("ŠŽšžŸ������������������������������������ �������������������")
_Reg_Chars= unicode("SZszYAAAAAACEEEEIIIIDNOOOOOUUUUYaaaaaacee eeiiiidnooooouuuuyy")
It is important to ensure the position of the characters is maintained else the mapping will be incorrect.
The accented character and replacement character should be added as a pair to these strings.
Regards,
Adrian