Convert files from ASCII/Windows-1250 to UTF-8

Date: 2021-07-30
# file: convert.ps1
# to run: pwsh.exe convert.ps1
$folder = .\*
Get-ChildItem $folder -recurse -Include *.cs,*.csproj,*.json,*.xafml | ForEach-Object {
    $file = $_;
    $content = Get-Content $file -Encoding windows-1250 # [ Ascii | Default | windows-1250 | UTF8 | ... ]
    Set-Content -PassThru $file $content -Encoding UTF8 -Force
}
52120cookie-checkConvert files from ASCII/Windows-1250 to UTF-8