Title: Common encoding pattern for Utility Cmdlets · Issue #3628 · PowerShell/PowerShell · GitHub
Open Graph Title: Common encoding pattern for Utility Cmdlets · Issue #3628 · PowerShell/PowerShell
X Title: Common encoding pattern for Utility Cmdlets · Issue #3628 · PowerShell/PowerShell
Description: Current encodings in Utility Cmdlets: Cmdlet Encodings CVSCommands.cs (1 and 2) "Unicode", "UTF7", "UTF8", "ASCII", "UTF32", "BigEndianUnicode", "Default", "OEM" Format-Hex.cs "Unicode", "BigEndianUnicode", "Utf8", "Utf7", "Utf32", "Asci...
Open Graph Description: Current encodings in Utility Cmdlets: Cmdlet Encodings CVSCommands.cs (1 and 2) "Unicode", "UTF7", "UTF8", "ASCII", "UTF32", "BigEndianUnicode", "Default", "OEM" Format-Hex.cs "Unicode", "BigEndian...
X Description: Current encodings in Utility Cmdlets: Cmdlet Encodings CVSCommands.cs (1 and 2) "Unicode", "UTF7", "UTF8", "ASCII", "UTF32", "BigEndianUnicode...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/3628
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Common encoding pattern for Utility Cmdlets","articleBody":"Current encodings in Utility Cmdlets:\r\n\r\nCmdlet | Encodings\r\n-| -\r\nCVSCommands.cs ([1](https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs#L210) and [2](https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Commands.Utility/commands/utility/CSVCommands.cs#L575)) | \"Unicode\", \"UTF7\", \"UTF8\", \"ASCII\", \"UTF32\", \"BigEndianUnicode\", \"Default\", \"OEM\"\r\n[Format-Hex.cs](https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/format-hex/Format-Hex.cs#L56) | \"Unicode\", \"BigEndianUnicode\", \"Utf8\", \"Utf7\", \"Utf32\", \"Ascii\"\r\n[Out-File.cs](https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Commands.Utility/commands/utility/FormatAndOutput/out-file/Out-File.cs#L87) | \"Unknown\", \"String\", \"Unicode\", \"BigEndianUnicode\", \"Utf8\", \"Utf7\", \"Utf32\", \"Ascii\", \"Default\", \"OEM\"\r\n[ImplicitRemotingCommands.cs](https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs#L81) | \"Unicode\", \"UTF7\", \"UTF8\", \"ASCII\", \"UTF32\", \"BigEndianUnicode\", \"Default\", \"OEM\"\r\n[MatchString.cs](https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Commands.Utility/commands/utility/MatchString.cs#L1213) | \"Unicode\", \"UTF7\", \"UTF8\", \"ASCII\", \"UTF32\", \"BigEndianUnicode\", \"Default\", \"OEM\"\r\n[XmlCommands.cs](https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Commands.Utility/commands/utility/XmlCommands.cs#L111) | \"Unicode\", \"UTF7\", \"UTF8\", \"ASCII\", \"UTF32\", \"BigEndianUnicode\", \"Default\", \"OEM\"\r\n\r\n\r\nIt seems we can safely migrate to a common pattern \"Unicode\", \"UTF7\", \"UTF8\", \"ASCII\", \"UTF32\", \"BigEndianUnicode\", \"Default\", \"OEM\".\r\n\r\nFormat-Hex was converted from function to cmdlet. I believe we can enhance it.\r\n\r\nOut-File. My understanding is that \"Unknown\" and \"String\" encodings is _output_ encodings and don't be used as _input_ encodings. So we can and should remove them from Out-File cmdlet.","author":{"url":"https://github.com/iSazonov","@type":"Person","name":"iSazonov"},"datePublished":"2017-04-23T08:25:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/3628/PowerShell/issues/3628"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a873da45-90d7-cdae-1d28-e0c2653503c7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EBF4:89F2B:852541:C229DE:6A5758AC |
| html-safe-nonce | 0ae078cc43c5b36c170d4828d3c18e07fc9cc2413384b1555ed1d0e5697878f0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQkY0Ojg5RjJCOjg1MjU0MTpDMjI5REU6NkE1NzU4QUMiLCJ2aXNpdG9yX2lkIjoiODQwNTc2NDM5NDY3Njg2OTI5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b41257ecfe619ccaba5a1813e60fae949fa54d2e8f6b0e9cdcc2ff6ec9382d69 |
| hovercard-subject-tag | issue:223621009 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/3628/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b8f4f0fe67c4dc46ed1a156b517a195abfec86a67fffc96ba2800116efa0bb84/PowerShell/PowerShell/issues/3628 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b8f4f0fe67c4dc46ed1a156b517a195abfec86a67fffc96ba2800116efa0bb84/PowerShell/PowerShell/issues/3628 |
| og:image:alt | Current encodings in Utility Cmdlets: Cmdlet Encodings CVSCommands.cs (1 and 2) "Unicode", "UTF7", "UTF8", "ASCII", "UTF32", "BigEndianUnicode", "Default", "OEM" Format-Hex.cs "Unicode", "BigEndian... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iSazonov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 602250ea3b6dd8302a7220ef98adb828dbc807e4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width