I’m stuck to a simple problem.
We need to manipulate csv files with Windows-1252 encoding.
I want to do that well with up-to date .NETCore UiPath Project. The project is almost done so moving to .NetFramework 4.6 is not possible .
With OOTB .NETCore, it’s not possible to manipulate Windows-1252.
For that, you have to add package System.Text.Encoding to your projet…
Problem is : I can add System.Text.Encoding to UiPath Project…
But this dependency is red-flagged in Project view… And so on I cannot add System.Text.Encoding to namespace section.
What’s wrong ? How to add properly this dependency, and fix this issue ?
Create new project with Compatibility = Windows, Language = VB
Add Write Text File activity
On properties pane:
Encoding = “Windows-1252”
Text = “Hello”
Filename = “Test.txt”
Run or Debug, and you will see :
Write Text File: One or more errors occurred. (‘Windows-1252’ is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. (Parameter ‘name’)) (‘Windows-1252’ is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. (Parameter ‘name’)) (‘Windows-1252’ is not a supported encoding name. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method. (Parameter ‘name’))