Windows PowerShell 5.1 and PowerShell 7: Which Export-Csv Encoding Contract Keeps a Cross-Platform Dev Environment Reproducible?
The goal is a repeatable development environment: one set of CSV-export scripts that runs unchanged under Windows PowerShell 5.1 and PowerShell 7.x, on both Windows and Linux agents, producing artifacts that downstream consumers decode identically on every run. The friction point is Export-Csv's default encoding. Windows PowerShell 5.1 writes UTF-16LE with a