Text File Encoding Issue

Hi,

I’m doing a process where Read Text File is used but having an issue as the text file encoding can be dynamic changing from ANSI to Unicode and so forth. Any solution to this issue?

Thanks!

Hi @Seungwan,

You can use UiPath Invoke Methods and Invoke Code to implement the similar problem you have as shown here to determine the file encoding. For information regarding UiPath Invoke Methods, please refer to UiPath Academy on Invoke Method and Invoke Code

A sample view of the invoke code which is converted from C# to VB.NET is shown below


Finally, using a couple of If activities to set the correct file encoding which you can use as input to Read Text File activity

Please refer to additional information below should encountered problems.
hint 1
hint 2
hint 3
hint 4
hint 5