Code returning wrong value in output file

Hi Everyone,

Urgent Require help in the below scenario !!!

I had a case where I wanted to merge csv files into a single CSV file, above solution was provided to me and it was working fine for merging.

But post merging some values are changing which is giving issue.

For example value from original CSV → Windows – Security – Advanced Configuration – Account(this is a row value)

in the merged CSV is converted to → Windows ? Security ? Advanced Configuration ?Account. I need the original row value

Please help.

@ptrobot @Yoichi @ppr You guys gave the previous solution can you pleasee provide some help here.

Thanks!!!

Have a check on the character encoding.