I am writing a csv file with the encoding option with value “utf-8” as described in this link Supported Character Encoding but it writes with the utf-8 bom encoding.
I have read some replies for related questions but not succeed with those replies.
Could you help me please. Also, I need explanation how that encoding option works cause when I put UTF8Encoding(False) I got an error.
Thanks for the reply. Yes, but I don’t understand how the parameters works. I want to understand what does “abc.text” and “Hello File” parameters means. Are they file paths, file names or what?
File: file path
Text: datatable (from the read activity above)
Encoding: new UTF8Encoding(False)
Cause it shows me a message:
File does not have a public static method named “WriteAllText” matching the parameters types, generic type arguments, and generic type constraints supplied to InvokeMethod ‘InvokeMethod’
What the invoke method does is it would convert the given string into the specified encoding and will write the data into the text file provided…you can provide the file name as .csv in the invoke method itself
So your first activity would be read text file to read csv as text and then invoke method to convert and write to a file again(and this can be written to csv directly if you need a csv output)