I am facing an issue with respect character encoding of the file which gets created on the server.
Below is the high level flow:
In Branch-1, I am extracting data from successfactors, and then using Flow Control, process the documents via a Split , XML Map and then there is a data process which have custom scripting which does further data manipulation , does count of records etc. and converts the string into UTF-8 using below line and stores the data in Dynamic process Property
is = new ByteArrayInputStream(outData.toString().getBytes("UTF-8"));
In Branch-2, I add Header via a message shape, retrieve the data from Dynamic Process property and write a file using Disk Connector where my local Atom is installed.
Now, when I check the encoding type of this file it is US-ASCII and not UTF-8.
My Atom is set-up for Default Character encoding of - UTF-8. Also, another process with similar flow is creating UTF-8 file but other processes are not.
So, Can anyone please suggest based on their experience why this is happening? Why the file is not in UTF-8?
Thanks & Regards,