Today I Learned

2025/05/13

powershell

That $? automatically includes the boolean success/failure of the previous command and > redirects stdout to a file AS UTF16. "unicode: ..." | Out-File -FilePath "..." -Encoding UTF8 correctly handles character encoding.