Modern project can't read Windows-1252 file

Hello UiPath Experts,

I have a modern project (.NET 6) and I need to read a CSV file with Windows-1252 encoding.
It’s the same problem as here : .NETCore (modern) project, cannot write file with Windows-1252 encoding

But I can’t add the “System.Text.Encoding.CodePages” nor import the “System.Text.CodePagesEncodingProvider” namespace…

How can I solve this problem ?

Kind regards,


In my environment(Studio CE 22.4.3), it works in Windows compatibility as the following.

For now, can you try to check if the following sample works in your environment? (2.0 KB)


1 Like

Hi Yoichi

I think I just misused the “Invoke Method” activity.
Thanks a lot, because of your example I understood how it worked and it solved my problem.

1 Like

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