Hi All,
I am generating a text file through a batch class, here my file gets generated fine but with UTF-8 encoding whereas expected is ANSI format.
I have used following code in batch class, here 0 is used which is normally for ANSI format but generates file in UTF-8 in place of ANSI when running in batch.(running this code on client works fine but fails in the batch/server)
file = new TextIo(fileName, 'W', 0);
Any help is appreciated.
*This post is locked for comments