I create powershell script to read a file int a step on TeamCity. If I read the file in Powershell app and put the next script, it's work fine, but when execute that inside a step of runner type "PowerShell" the encoding not working and some characters are without encoding (like a "áãéí" etc,etc)
$userDocuments = [environment]::getfolderpath("mydocuments")
$file= "myfile.txt"
$fullPath = Join-Path $userDocuments -ChildPath $file
Get-Content -Encoding UTF8 $fullPath
Someone help me please?
Thanks in advance