Я использую следующий код Powershell:
$regFiles = @(
'regs_10_2019-04-10-07_58_48_geän.csv'
)
$base = 'C:\Temp'
$regFiles | %{
$f = "$base\Archive\$_"
# vvv This throws an error because it cannot find the file with the 'ä'
move-item -Path $f -Destination $base
}
Если в имени файла есть «ä», он не найден Powershell. Есть ли способ заставить Powershell распознавать имя файла?
Спасибо.