How to convert .txt to ANSI encoding

activities

#1

Hello Guys!

I am trying to convert files from any encoding to ANSI like this:

UiPath.Core.Activities.ReadTextFile
and then
UiPath.Core.Activities.WriteTextFile

The last activity has an option called Encoding, which parameters are defined this link [https://activities.uipath.com/docs/supported-character-encoding]

But in the list I’m not finding ANSI encoding, it just says that “If no Byte Order Marks are detected, the system ANSI code page is selected by default.” And I’m writing “” to force it like default but it is not converting it to ANSI, only to UTF-8.

Any idea on how to do it?

Thank you so much!!


#2

@badita :mage::pray: