Convert characters to ASCII code

Hello friends (@balupad14 , @Florent_Salendres )
I would like to convert a string into ASCII code, in order to replace some special characters contained in the string.
Can you please tell me how to do that in UiPath?
Thanks,
it’s very urgent.
Cami

Hi @CamiCat
Did u tried with the activity?

I think this one helps you

Regards

Nived N

Happy Automation

1 Like

Thank @NIVED_NAMBIAR .
I tried but doeasn’t work.
can you give me an example of worflow to do that?
Thanks
Cami

Hi @CamiCat

Use encode string from the above activity

Here i am passing “Nived N” as input string and selecting encoding type as ASCII and store the output in output variable

output i got

image

Mark it as solution if it resolves your query

Regards

Nived N

Happy Automation

2 Likes

Thanks!
In case I have a string…I need to check if some special characters are present in it.
How to get the numeric format of the special characters inside a list?
Thanks,
Cami

did u need to get the asci code of special charcters? @CamiCat

I am not cleared with your point?

@CamiCat

grafik

in short:
ASC - returns ASCII Code for a character
CHR - returns Character for an ASCII Code
last line filters out the characters not rated as wanted

So it depends on your definitions / allowed Ascii codes that you want to rate as valid

Maybe be used for some reports:
grafik

3 Likes

Did you mean you want to transliterate characters?
https://www.codeproject.com/Articles/13503/Stripping-Accents-from-Latin-Characters-A-Foray-in

1 Like

Thanks a lot @ppr .
I’ll try and let you know as soon as possible if your soluzion works correcty.
Cami

Thanks @ppr .
The last function returns all the special characters in a string?
Is there a function that retrieves only special characters?

Thanks a lot,
I’m quite arrived at the solution
Camilla

@CamiCat
on the statements ending with a toList is returning a List of the affected Datatype (we also do see it in the screenshot).

has a relation to above mentioned

In some cases we can work with the provided functions of the char datatype. e.g.

grafik

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.