Powershell replace special characters like ü
问题 (Get-Content -Path $filePath) -creplace ${find}, $replace | Add-Content -Path $tempFilePath If $find and $replace contains below values it's not replacing it ç c à a é e Please help 回答1: You need to -Encoding UTF8 to the Get-Content method, for reading the special characters correctly: (Get-Content -Path $filePath -Encoding UTF8) -creplace ${find}, $replace | Add-Content -Path $tempFilePath 回答2: If by characters like ü you mean Diacritics you can use this: function Replace-Diacritics { Param(