Skip to content

Commit 678ea11

Browse files
authored
Merge pull request #96 from PowerShell/0020-EncodingFix
Update encoding RFC to default BOM-less UTF-8 everywhere
2 parents 2d10be7 + 9bcd74e commit 678ea11

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
@@ -80,10 +80,8 @@ Redirection UTF16
8080
```
8181
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.
8282

83-
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`.
84-
If the `$PSDefaultFileEncoding` is not set, `UTF8NoBOM` shall be the default for non-Windows systems, and `Legacy` (the current behavior) on Windows.
85-
86-
Naturally, specific use of the `-encoding` parameter when invoking the cmdlet shall override `$PSDefaultFileEncoding`.
83+
The default on all platforms shall be `UTF8NOBOM` (including when `$PSDefaultFileEncoding` is not set).
84+
Naturally, specific use of the `-Encoding` parameter when invoking the cmdlet shall override `$PSDefaultFileEncoding`.
8785

8886
### Exclusions
8987

0 commit comments

Comments
 (0)