-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Document new variable PSApplicationOutputEncoding #10876
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Document new variable PSApplicationOutputEncoding #10876
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
Edit: PR has been merged so I've rebased the changes here. |
b55f4ce to
c1a3390
Compare
This comment was marked as outdated.
This comment was marked as outdated.
c1a3390 to
bfb0a36
Compare
This comment was marked as outdated.
This comment was marked as outdated.
bfb0a36 to
49de1d1
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
49de1d1 to
823964e
Compare
This comment was marked as off-topic.
This comment was marked as off-topic.
823964e to
fababe9
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
This change is not going to make it into 7.5. Closing this PR. We can reopen it if the change gets merged in a future release. |
|
@sdwheeler, any chance we can re-open this PR now that PowerShell/PowerShell#21219 has been merged? |
This comment was marked as outdated.
This comment was marked as outdated.
|
@jborean93 Thanks for the notification. I will rebase and take a look. |
3f29267 to
2552059
Compare
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 issues. Other issues are also a high priority. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 2552059: ✅ Validation status: passed
For more details, please refer to the build report. |
2552059 to
527a18e
Compare
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 issues. Other issues are also a high priority. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 527a18e: ✅ Validation status: passed
For more details, please refer to the build report. |
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 issues. Other issues are also a high priority. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Merge is pending release. Don't know if this is going into the next release of 7.6 or 7.5 (or both). |
|
Learn Build status updates of commit b471605: ✅ Validation status: passed
For more details, please refer to the build report. |
|
Thanks, I've been told the |
Documents the new variable $PSApplicationOutputEncoding which is used to control the encoding PowerShell uses when reading output from an external application.
b471605 to
93d6630
Compare
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
|
Learn Build status updates of commit 93d6630: ✅ Validation status: passed
For more details, please refer to the build report. |
sparrowt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trivial but...
reference/7.5/Microsoft.PowerShell.Core/About/about_Character_Encoding.md
Outdated
Show resolved
Hide resolved
Thanks @sparrowt Co-authored-by: Tom Sparrow <793763+sparrowt@users.noreply.github.com>
PoliCheck Scan ReportThe following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans. ✅ No issues foundMore information about PoliCheckInformation: PoliCheck | Severity Guidance | Term |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR documents the new $PSApplicationOutputEncoding variable for PowerShell 7.5, which controls the character encoding PowerShell uses when reading output from external applications. The PR also updates related documentation and fixes link references.
Key changes:
- Added comprehensive documentation for the new
$PSApplicationOutputEncodingpreference variable - Updated
about_Character_Encoding.mdto reference the new variable alongside$OutputEncoding - Reorganized link references to accommodate the new variable section
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
reference/7.5/Microsoft.PowerShell.Core/About/about_Preference_Variables.md |
Added new $PSApplicationOutputEncoding section with examples, updated table of preference variables, and adjusted all link references to accommodate the new entry |
reference/7.5/Microsoft.PowerShell.Core/About/about_Character_Encoding.md |
Updated to mention three default encoding variables instead of two, added reference to $PSApplicationOutputEncoding, and reorganized link references |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| To automatically import a module, get or use a command contained in the module. | ||
|
|
||
| The `$PSModuleAutoLoadingPreference` variable takes one of the | ||
| The `$PSModuleAutoloadingPreference` variable takes one of the |
Copilot
AI
Dec 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inconsistent capitalization: "Autoloading" should be "AutoLoading" to match the variable name $PSModuleAutoLoadingPreference used elsewhere in the document.
| The `$PSModuleAutoloadingPreference` variable takes one of the | |
| The `$PSModuleAutoLoadingPreference` variable takes one of the |
| The automatic variable `$OutputEncoding` affects the encoding PowerShell uses | ||
| to communicate with external programs. It has no effect on the encoding that | ||
| the output redirection operators and PowerShell cmdlets use to save to files. | ||
| to when sending data to external programs. The `$PSApplicationOutputEncoding` |
Copilot
AI
Dec 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar issue: The phrase "to when sending" should be "when sending". Remove the redundant "to" before "when".
| to when sending data to external programs. The `$PSApplicationOutputEncoding` | |
| when sending data to external programs. The `$PSApplicationOutputEncoding` |
|
Learn Build status updates of commit 1f6203a: ✅ Validation status: passed
For more details, please refer to the build report. |
PR Summary
Documents the new variable
$PSApplicationOutputEncodingwhich is used to control the encoding PowerShell uses when reading output from an external application.This also removes the example for
$OutputEncodingas it is wrong. The$OutputEncodingvariable is only used as the encoding that PowerShell writes data through the external application's stdin pipe. The command line is always a string on Windows/Linux/macOS so is unaffected by this option.PR Checklist