Title: Converting from windows 1252 to UTF8 · Issue #6550 · PowerShell/PowerShell · GitHub
Open Graph Title: Converting from windows 1252 to UTF8 · Issue #6550 · PowerShell/PowerShell
X Title: Converting from windows 1252 to UTF8 · Issue #6550 · PowerShell/PowerShell
Description: Steps to reproduce Using Windows 1252 encoding, create a file "test.txt" that contents this sentence : cette fonction doit être appelée avant l'initialisation de l'API Try to convert the file "test.txt" from Windows 1252 to UTF8 using th...
Open Graph Description: Steps to reproduce Using Windows 1252 encoding, create a file "test.txt" that contents this sentence : cette fonction doit être appelée avant l'initialisation de l'API Try to convert the file "test...
X Description: Steps to reproduce Using Windows 1252 encoding, create a file "test.txt" that contents this sentence : cette fonction doit être appelée avant l'initialisation de l'API Try to conv...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/6550
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Converting from windows 1252 to UTF8","articleBody":"\u003c!--\r\n\r\nFor Windows PowerShell 5.1 issues, suggestions, or feature requests please use the following link instead:\r\n- Windows PowerShell [UserVoice](https://windowsserver.uservoice.com/forums/301869-powershell)\r\n\r\nIf it is a bug report:\r\n- make sure you are able to repro it on the latest released version. \r\nYou can install the latest version from https://github.com/PowerShell/PowerShell/releases\r\n- Search the existing issues.\r\n- Refer to the [FAQ](https://github.com/PowerShell/PowerShell/blob/master/docs/FAQ.md).\r\n- Refer to the [known issues](https://github.com/PowerShell/PowerShell/blob/master/docs/KNOWNISSUES.md).\r\n- Fill out the following repro template:\r\n\r\nIf it's not a bug, please remove the template and elaborate the issue in your own words.\r\n--\u003e\r\n\r\nSteps to reproduce\r\n------------------\r\nUsing Windows 1252 encoding, create a file \"test.txt\" that contents this sentence : \r\ncette fonction doit être appelée avant l'initialisation de l'API \r\n\r\nTry to convert the file \"test.txt\" from Windows 1252 to UTF8 using this script.\r\n\r\nParam (\r\n [Parameter(Mandatory=$True)][String]$SourcePath\r\n)\r\n\r\nGet-ChildItem $SourcePath\\* -recurse -Include *.txt | ForEach-Object {\r\n$content = $_ | Get-Content\r\n\r\nSet-Content -PassThru $_.Fullname $content -Encoding UTF8 -Force}\r\n\r\n\r\nExpected behavior\r\n-----------------\r\nIn UTF8 :\r\n\r\ncette fonction doit être appelée avant l'initialisation de l'API \r\n\r\nActual behavior\r\n---------------\r\nIn UTF8:\r\n\r\ncette fonction doit �tre appel�e avant l'initialisation de l'API \r\n\r\nEnvironment data\r\n----------------\r\n\r\nName Value\r\n---- -----\r\nPSVersion 6.1.0-preview.1\r\nPSEdition Core\r\nGitCommitId v6.1.0-preview.1\r\nOS Microsoft Windows 6.1.7601 S\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\nNote\r\n-------\r\nPowershell 4.0 does not have this issue\r\n","author":{"url":"https://github.com/Calimerou","@type":"Person","name":"Calimerou"},"datePublished":"2018-04-03T12:53:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/6550/PowerShell/issues/6550"}
| 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:9b02a1fd-2fc9-dd34-02ff-fdf082e22077 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D382:12936D:23CE14D:33CCCF7:6A565E7D |
| html-safe-nonce | 7bc93c9424f91e080d039861925c2c128936e59ecc91050f1c3dede7219730a2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzgyOjEyOTM2RDoyM0NFMTREOjMzQ0NDRjc6NkE1NjVFN0QiLCJ2aXNpdG9yX2lkIjoiNDY5NTUzNTQ2NDE0MDM5ODIwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3fcb6c90901996a882e80c7fb2f76943d2dab01e8c089df6d5e070f004001333 |
| hovercard-subject-tag | issue:310824065 |
| 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/6550/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ecf2b9bea0e22e16a649af55a9eda5cd8d5d44597a86c0c97bc3790b89ee11f/PowerShell/PowerShell/issues/6550 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ecf2b9bea0e22e16a649af55a9eda5cd8d5d44597a86c0c97bc3790b89ee11f/PowerShell/PowerShell/issues/6550 |
| og:image:alt | Steps to reproduce Using Windows 1252 encoding, create a file "test.txt" that contents this sentence : cette fonction doit être appelée avant l'initialisation de l'API Try to convert the file "test... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Calimerou |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6a3afe34dff341ad10912db44becf282289d7f2af20576241738530fbb28de01 |
| 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 | b71002134df95575e9f6c2945a64d454b0be181e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width