-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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 this script.
Param (
[Parameter(Mandatory=$True)][String]$SourcePath
)
Get-ChildItem $SourcePath* -recurse -Include *.txt | ForEach-Object {
$content = $_ | Get-Content
Set-Content -PassThru $_.Fullname $content -Encoding UTF8 -Force}
Expected behavior
In UTF8 :
cette fonction doit être appelée avant l'initialisation de l'API
Actual behavior
In UTF8:
cette fonction doit �tre appel�e avant l'initialisation de l'API
Environment data
Name Value
PSVersion 6.1.0-preview.1
PSEdition Core
GitCommitId v6.1.0-preview.1
OS Microsoft Windows 6.1.7601 S
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Note
Powershell 4.0 does not have this issue