Skip to content

Commit bfb0a36

Browse files
committed
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 4303089 commit bfb0a36

File tree

2 files changed

+187
-125
lines changed

2 files changed

+187
-125
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
@@ -184,11 +184,12 @@ without having to specify it manually.
184184

185185
## Changing the default encoding
186186

187-
PowerShell has two default variables that can be used to change the default
187+
PowerShell has three default variables that can be used to change the default
188188
encoding behavior.
189189

190190
- `$PSDefaultParameterValues`
191191
- `$OutputEncoding`
192+
- `$PSApplicationOutputEncoding`
192193

193194
For more information, see
194195
[about_Preference_Variables](about_Preference_Variables.md).
@@ -218,8 +219,9 @@ $PSDefaultParameterValues['*:Encoding'] = 'utf8'
218219
> behave the same way even when run by another user, on a different computer,
219220
> or in a different version of PowerShell.
220221
221-
The automatic variable `$OutputEncoding` affects the encoding PowerShell uses
222-
to communicate with external programs. It has no effect on the encoding that
222+
The automatic variables `$OutputEncoding` and `$PSApplicationOutputEncoding`
223+
affects the encoding PowerShell uses to when sending data into and reading
224+
from external programs respectively. They have no effect on the encoding that
223225
the output redirection operators and PowerShell cmdlets use to save to files.
224226

225227
## See also

0 commit comments

Comments
 (0)