Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions 1-Draft/RFC0020-DefaultFileEncoding.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,16 @@ When `$PSDefaultFileEncoding` is set to `UTF8NoBOM`, the file shall be created w
When `$PSDefaultFileEncoding` is set to `Legacy`, the behavior shall be:

```
CmdletName Encoding
---------- --------
Add-Content ASCII
Export-Clixml UTF16
Export-CSV ASCII
Out-File UTF16
Set-Content ASCII
Export-PSSession UTF8 (with BOM)
Redirection UTF16
CmdletName Encoding
---------- --------
Add-Content ASCII
Export-Clixml UTF16
Export-CSV ASCII
Out-File UTF16
New-ModuleManifest UTF16
Set-Content ASCII
Export-PSSession UTF8 (with BOM)
Redirection UTF16
```
This persists the irregular file encoding on non-Windows platforms, and allows Linux files to be used on Windows with the same encoding as exists in previous releases of PowerShell.

Expand Down