| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:40a47e7d-f6f9-445a-f564-f83d7aff8411 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A7F2:22FDB8:78F888:A50865:6A554BF2 |
| html-safe-nonce | b31a070a182b82eaa16a476f3dacbbc1f96df7bcb651e52448282c35d664ae1f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBN0YyOjIyRkRCODo3OEY4ODg6QTUwODY1OjZBNTU0QkYyIiwidmlzaXRvcl9pZCI6IjE1Nzk1MzUxMzE4MTkxOTk0NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 25fd853b9c57b769b8de48ae262c878798a08f179bf927ac60dc7a396dcaa0c5 |
| hovercard-subject-tag | pull_request:1284129783 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/19379/files |
| twitter:image | https://avatars.githubusercontent.com/u/105941898?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/105941898?s=400&v=4 |
| og:image:alt | PR Summary
Add EncodingHelper to detect the response encoding from the BOM
Add tests
PR Context
using: https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/Sys... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cd9eea424140838b22e9eabd53d92b5702617ddd6d76efcd3a37f08d44309ca5 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3084b9f587e8f1e19803bbe0c77ac77ce3c99c5c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/PowerShell/PowerShell/pull/19379/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F19379%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F19379%2Ffiles |
|
Sign up
| https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=PowerShell%2FPowerShell |
| Reload | https://github.com/PowerShell/PowerShell/pull/19379/files |
| Reload | https://github.com/PowerShell/PowerShell/pull/19379/files |
| Reload | https://github.com/PowerShell/PowerShell/pull/19379/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19379/files |
|
PowerShell
| https://github.com/PowerShell |
| PowerShell | https://github.com/PowerShell/PowerShell |
|
Notifications
| https://github.com/login?return_to=%2FPowerShell%2FPowerShell |
|
Fork
8.4k
| https://github.com/login?return_to=%2FPowerShell%2FPowerShell |
|
Star
54.4k
| https://github.com/login?return_to=%2FPowerShell%2FPowerShell |
|
Code
| https://github.com/PowerShell/PowerShell |
|
Issues
1.2k
| https://github.com/PowerShell/PowerShell/issues |
|
Pull requests
287
| https://github.com/PowerShell/PowerShell/pulls |
|
Discussions
| https://github.com/PowerShell/PowerShell/discussions |
|
Actions
| https://github.com/PowerShell/PowerShell/actions |
|
Projects
| https://github.com/PowerShell/PowerShell/projects |
|
Security and quality
3
| https://github.com/PowerShell/PowerShell/security |
|
Insights
| https://github.com/PowerShell/PowerShell/pulse |
|
Code
| https://github.com/PowerShell/PowerShell |
|
Issues
| https://github.com/PowerShell/PowerShell/issues |
|
Pull requests
| https://github.com/PowerShell/PowerShell/pulls |
|
Discussions
| https://github.com/PowerShell/PowerShell/discussions |
|
Actions
| https://github.com/PowerShell/PowerShell/actions |
|
Projects
| https://github.com/PowerShell/PowerShell/projects |
|
Security and quality
| https://github.com/PowerShell/PowerShell/security |
|
Insights
| https://github.com/PowerShell/PowerShell/pulse |
| Sign up for GitHub
| https://github.com/signup?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2FPowerShell%2FPowerShell%2Fissues%2Fnew%2Fchoose |
| CarloToso | https://github.com/CarloToso |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| CarloToso:encodinghelper | https://github.com/CarloToso/PowerShell/tree/encodinghelper |
|
Conversation
49
| https://github.com/PowerShell/PowerShell/pull/19379 |
|
Commits
23
| https://github.com/PowerShell/PowerShell/pull/19379/commits |
|
Checks
0
| https://github.com/PowerShell/PowerShell/pull/19379/checks |
|
Files changed
3
| https://github.com/PowerShell/PowerShell/pull/19379/files |
|
WebCmdlets get encoding from BOM
| https://github.com/PowerShell/PowerShell/pull/19379/files#top |
|
Show all changes
23 commits
| https://github.com/PowerShell/PowerShell/pull/19379/files |
|
0cebc78
Add EncodingHelper
CarloToso Mar 21, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/0cebc7862312f7e0182e6dbda5148ba533673e40 |
|
dd9811b
remove const
CarloToso Mar 21, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/dd9811b53ec5836e84730557659ddc0023dbc70a |
|
efe8e0a
add stream.length chack
CarloToso Mar 21, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/efe8e0aa8d12e6eb15a1013d04ac9a0816dfb364 |
|
3d42ae5
use when
CarloToso Mar 21, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/3d42ae55dce6a789bd59060b76127b9bf88603d6 |
|
b43ef89
use StreamReader detectEncodingFromByteOrderMarks
CarloToso Mar 23, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/b43ef898c1d54aa6387fce915396cd4898434966 |
|
1141be9
fix return
CarloToso Mar 23, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/1141be9442a590dd3236c256ea962216f5928aec |
|
4a90872
stream leaveOpen: true
CarloToso Mar 23, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/4a90872659a734cc22f586be47ff4af1f86fc024 |
|
a2233fc
add tests
CarloToso Mar 24, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/a2233fc7c77cfa9ca5f154af463b3eacaeeae8fc |
|
af44f31
fix codefactor
CarloToso Mar 24, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/af44f3175a1043207f25383a2a3764679bcdcb4b |
|
314c979
fix tests
CarloToso Mar 25, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/314c97964701f3c1e6033af48e9e6990540d5f0d |
|
2d1107b
reader.Peek()
CarloToso Mar 25, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/2d1107b015f5638fceb05f24c8099d9e913abc15 |
|
c64591a
comment out reader.Peek()
CarloToso Mar 26, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/c64591a5f227b1b89824c9527632bb1b84a72805 |
|
79698f3
try fix
CarloToso Mar 26, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/79698f35926e90527168f2bad7477d7f3873b900 |
|
1a6707d
Pr/19379 (#1)
stevenebutler Apr 8, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/1a6707d38d65f85fc96920f66a0905207a194768 |
|
0b48687
Merge branch 'master' into encodinghelper
CarloToso Apr 8, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/0b48687de5952a7e71b0ba5ef99b67a63b3400e7 |
|
08f4cda
Merge branch 'master' into encodinghelper
CarloToso May 3, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/08f4cda2902081052f5d601ae41ee0aefb10b0c0 |
|
3ecad71
fix nullable
CarloToso May 3, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/3ecad716c36f16d33d1227dd33efdf971484e982 |
|
61b23d3
Add comments to code; better name for variable; encoding precedence t…
CarloToso Dec 11, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/61b23d3e55c2eb1ff8062217269b61fbc3382b5b |
|
c9d68d9
Merge branch 'master' into encodinghelper
CarloToso Dec 11, 2023
| https://github.com/PowerShell/PowerShell/pull/19379/commits/c9d68d97d7b6b5693b7f2dad9949a4670ca4184a |
|
2edb659
Make encoding changes handle network stall timeouts
stevenebutler Jan 4, 2024
| https://github.com/PowerShell/PowerShell/pull/19379/commits/2edb659544b29bca6cfbd72f2a5b95f49533256c |
|
311a0ad
Merge pull request #2 from stevenebutler/encodinghelper-patch
CarloToso Jan 4, 2024
| https://github.com/PowerShell/PowerShell/pull/19379/commits/311a0ad73863a387b5d72c274252d3c85300a93c |
|
bf03dfc
Merge branch 'PowerShell:master' into encodinghelper
CarloToso Jan 5, 2024
| https://github.com/PowerShell/PowerShell/pull/19379/commits/bf03dfc0ad205e3a7df7f09d304c63b337fa3495 |
|
4abf713
Add ConfigureAwait(false) to awaits (#3)
stevenebutler Jan 7, 2024
| https://github.com/PowerShell/PowerShell/pull/19379/commits/4abf7139dffcbc7aa104a72fd81ed1de1784abbb |
|
Clear filters
| https://github.com/PowerShell/PowerShell/pull/19379/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19379/files |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19379/files |
|
StreamHelper.cs
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-cd17ef568c17aed5340e0dc2c224a29ede85a7bc19f8297339b80098cc60722d |
|
WebCmdlets.Tests.ps1
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
EncodingController.cs
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-a30357b781b079b298edd873dd865c804c87fb13d42d4dbb745805aa1ce09366 |
|
| https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7 |
| src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/StreamHelper.cs | https://github.com/PowerShell/PowerShell/pull/19379/files#diff-cd17ef568c17aed5340e0dc2c224a29ede85a7bc19f8297339b80098cc60722d |
|
View file
| https://github.com/PowerShell/PowerShell/blob/4abf7139dffcbc7aa104a72fd81ed1de1784abbb/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/StreamHelper.cs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/19379/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-cd17ef568c17aed5340e0dc2c224a29ede85a7bc19f8297339b80098cc60722d |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-cd17ef568c17aed5340e0dc2c224a29ede85a7bc19f8297339b80098cc60722d |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-cd17ef568c17aed5340e0dc2c224a29ede85a7bc19f8297339b80098cc60722d |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-cd17ef568c17aed5340e0dc2c224a29ede85a7bc19f8297339b80098cc60722d |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-cd17ef568c17aed5340e0dc2c224a29ede85a7bc19f8297339b80098cc60722d |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-cd17ef568c17aed5340e0dc2c224a29ede85a7bc19f8297339b80098cc60722d |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-cd17ef568c17aed5340e0dc2c224a29ede85a7bc19f8297339b80098cc60722d |
|
| https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L7 |
| test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 | https://github.com/PowerShell/PowerShell/pull/19379/files#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
View file
| https://github.com/PowerShell/PowerShell/blob/4abf7139dffcbc7aa104a72fd81ed1de1784abbb/test/powershell/Modules/Microsoft.PowerShell.Utility/WebCmdlets.Tests.ps1 |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/19379/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-1b256250c40f42b7c01f2695c0c908112a4eead87e3ef3ff534768ad930e7ca1 |
|
| https://github.com/PowerShell/PowerShell/blob/master/.github/CODEOWNERS#L64 |
| test/tools/WebListener/Controllers/EncodingController.cs | https://github.com/PowerShell/PowerShell/pull/19379/files#diff-a30357b781b079b298edd873dd865c804c87fb13d42d4dbb745805aa1ce09366 |
|
View file
| https://github.com/PowerShell/PowerShell/blob/4abf7139dffcbc7aa104a72fd81ed1de1784abbb/test/tools/WebListener/Controllers/EncodingController.cs |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/19379/{{ revealButtonHref }} |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-a30357b781b079b298edd873dd865c804c87fb13d42d4dbb745805aa1ce09366 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/19379/files |
|
| https://github.com/PowerShell/PowerShell/pull/19379/files#diff-a30357b781b079b298edd873dd865c804c87fb13d42d4dbb745805aa1ce09366 |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |