Skip to content

Fix to fallback to utf-8 when provided an invalid charset in web responses - #27789

Open
Ryan Yates (kilasuit) wants to merge 1 commit into
PowerShell:masterfrom
kilasuit:web-utf8-fix
Open

Fix to fallback to utf-8 when provided an invalid charset in web responses#27789
Ryan Yates (kilasuit) wants to merge 1 commit into
PowerShell:masterfrom
kilasuit:web-utf8-fix

Conversation

@kilasuit

Copy link
Copy Markdown
Collaborator

PR Summary

This adds in the conversion when servers respond with charset=utf8 & other non recognised charsets.
By doing so the Debug message that contains the WebResponse Body is returned as expected by developers or end users of the WebCmdlets

PR Context

fixes #27788

PR Checklist

@kilasuit
Ryan Yates (kilasuit) requested a review from a team as a code owner August 9, 2026 17:41
Copilot AI lite review requested due to automatic review settings August 9, 2026 17:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When a Web Repsonse returns charset=utf8 this throws the exception into the verbose stream

2 participants