Accented characters changed in a script called in é
Solved
OldPapy
-
Anonymous user -
Anonymous user -
Hello,
In: PowerShell under Visual Studio Code
Script1.ps1, Write-Host "é" displays correctly
Script2.ps1, Write-Host "é" displays correctly
When Script1.ps1 launches Script2.ps1:
powershell -executionpolicy bypass ".\Script2.ps1"
In Script2.ps1, Write-Host "é" which was displaying correctly
after the call, the character é displays as é
Please let me know how to prevent this change
Thank you in advance.
3 réponses
Hello
did you set the encoding to unicode?
If so, try other formats utf16 or 32
When I was little, the Dead Sea was just sick.
George Burns