How can I remove accent (replace special character) from the text
Input: "Cámara" Desired Output: "Camara"
Discussion posts and replies are publicly visible
If you just need to remove some un printable characters alone you can use clean() function,
if you want to replace you need to create some logic, very high level example is given below.
To replace the special characters with some other encoding, try using substitute() function.
a!localVariables( local!splitted_text: a!forEach( items: enumerate(len(ri!text)), expression: charat(ri!text, fv!index) ), local!splCharsReplacedArray_txt: a!forEach( items: local!splitted_text, expression: if( isnull(clean(fv!item)), /* you can maintain a constant for all chars u want to replace*/ displayvalue(fv!item, { "á", "é", "í" }, { "a", "e", "i" }, ""), fv!item ) ), joinarray(local!splCharsReplacedArray_txt, ""))