powershell - 如何让 Powershell 识别带有变音符号“ä”的文件名?
问题描述
我正在运行以下 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 识别文件名?
谢谢。
解决方案
推荐阅读
- python - 2个数据框列之间的相似性
- java - 如果为 null,则检查布尔值
- ios - '(CGFloat, CGFloat) -> CGRect' 类型的值没有成员'origin'
- python - 匹配连字符与换行符的组合
- image - 无法使用 yii2 在滑块中显示图像
- xml - 哪个优先:logback.xml 或 logback-test.xml?
- plugins - 如何将 Jmeter 脚本与 UFT 或 QTP 集成
- python - selenium.common.exceptions.WebDriverException:消息:通过 Python unittest 模块执行测试用例时没有这样的会话
- node.js - 通过nodejs express 4中的单个输入上传多个文件的最佳方法是什么?
- android - 如何获取与我的应用程序相关的所有重要信息(如崩溃和错误日志),这些信息存在于 Google Playstore 上