Skip to content

Commit 0c73daf

Browse files
jborean93sdwheeler
authored andcommitted
Document new variable PSApplicationOutputEncoding
Documents the new variable $PSApplicationOutputEncoding which is used to control the encoding PowerShell uses when reading output from an external application.
1 parent f98ef63 commit 0c73daf

File tree

2 files changed

+191
-131
lines changed

2 files changed

+191
-131
lines changed

reference/7.5/Microsoft.PowerShell.Core/About/about_Character_Encoding.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,12 @@ without having to specify it manually.
182182

183183
## Changing the default encoding
184184

185-
PowerShell has two default variables that can be used to change the default
185+
PowerShell has three default variables that can be used to change the default
186186
encoding behavior.
187187

188188
- `$PSDefaultParameterValues`
189189
- `$OutputEncoding`
190+
- `$PSApplicationOutputEncoding`
190191

191192
For more information, see [about_Preference_Variables][05].
192193

@@ -215,8 +216,9 @@ $PSDefaultParameterValues['*:Encoding'] = 'utf8'
215216
> behave the same way even when run by another user, on a different computer,
216217
> or in a different version of PowerShell.
217218
218-
The automatic variable `$OutputEncoding` affects the encoding PowerShell uses
219-
to communicate with external programs. It has no effect on the encoding that
219+
The automatic variables `$OutputEncoding` and `$PSApplicationOutputEncoding`
220+
affects the encoding PowerShell uses to when sending data into and reading
221+
from external programs respectively. They have no effect on the encoding that
220222
the output redirection operators and PowerShell cmdlets use to save to files.
221223

222224
## See also

0 commit comments

Comments
 (0)