Closed petertheautomator closed 4 months ago
Hi @petertheautomator,
One breaking change in v6 is that the default value from addBom (previously writeBOM) is now false
instead of true
which is causing your issue.
With the following settings it will work:
- task: replacetokens@6
displayName: "Replace tokens"
inputs:
sources: filles/task.xml
addBOM: true
missingVarLog: 'error'
transforms: true
telemetryOptout: true
addBOM: true
fixed the problem.
Thanks for the quick response!
We upgraded replacetokens from V4 to V6 and all UTF-16le files that are processed become corrupted.
How to replicate
error in the example:![image](https://github.com/qetza/replacetokens-task/assets/75072402/0e15d2d8-0895-453f-b985-d69c27442867)
Settings: