JupyterLab Extension for INFACore

JupyterLab Extension for INFACore

Convert diacritic English characters

Convert diacritic English characters

You can apply this function to translate diacritic characters to regular ASCII text characters.
To perform this operation, select the
Convert Diacritic English Chars
function, and specify the data object variable. Then, enter the column name that contains the diacritic characters.
The function changes the diacritic characters to regular ASCII text. For example, when you apply this function to a column named tëst, the function changes the ë to an e and returns tëst as test.
In the following example, the input flat file includes a column named
diacritic_chars
and contains diacritic English characters:
The following snippet is the input code when you apply the function:
import informatica.infacore as ic FF_DV = ic.get_data_source("Flat File").get_connection("DR_FlatFile").get_data_object("input.csv") dqf = ic.DataQualityFunctions() dqf.convert_diacritic_english_chars(FF_DV,"diacritic_chars")
The following snippet shows the output, where the diacritic characters are replaced with ASCII text characters:
In_Field: string Out_Field: string ---- In_Field: [["tëst","ÔN","\uXXXX"]] Out_Field: [["test","ON","\uXXXX"]]

0 COMMENTS

We’d like to hear from you!