I know similar topics have been discussed here few years ago but i don’t find any appropriate solution.
Im deploying on rhel 7 server. After variable substitution, my ISO-8859 file are converted to UTF-8.
I use “Detect from template”. When I disable “Substitute Variables in Files” encoding is preserved.
The workaround is to add a step to your projects deployment processes with the following bash script to remove the BOM
sed -i '1 s/^\xef\xbb\xbf//' /path/to/deployment/*.conf
Do you think this workaround would apply to your use case? Please let me know.