Skip to content

Commit 9bcd74e

Browse files
authored
Update encoding RFC to default BOM-less UTF-8 everywhere
1 parent 3176c7e commit 9bcd74e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

1-Draft/RFC0020-DefaultFileEncoding.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,8 @@ Redirection UTF16
7979
```
8080
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.
8181

82-
The default on Windows systems shall remain unchanged (the value for `$PSDefaultFileEncoding` shall be set to `Legacy`), non-Windows platforms shall set `$PSDefaultFileEncoding` to `UTF8NoBOM`.
83-
If the `$PSDefaultFileEncoding` is not set, `UTF8NoBOM` shall be the default for non-Windows systems, and `Legacy` (the current behavior) on Windows.
84-
85-
Naturally, specific use of the `-encoding` parameter when invoking the cmdlet shall override `$PSDefaultFileEncoding`.
82+
The default on all platforms shall be `UTF8NOBOM` (including when `$PSDefaultFileEncoding` is not set).
83+
Naturally, specific use of the `-Encoding` parameter when invoking the cmdlet shall override `$PSDefaultFileEncoding`.
8684

8785
### Exclusions
8886

0 commit comments

Comments
 (0)