似乎每次我提交Windows 8应用程序时都会收到相同的UTF-8错误。
有没有更快的方法将一批文件转换为UTF-8格式?
发布于 2013-05-15 12:42:14
您可以使用下面的PowerShell脚本将目录中的所有文件转换为UTF8。
$files = [IO.Directory]::GetFiles("C:\temp\files")
foreach($file in $files)
{
$content = get-content -path $file
$content | out-file $file -encoding utf8
} 您应该能够使用PowerShell ISE或按照此instruction运行上述脚本。
https://stackoverflow.com/questions/16550337
复制相似问题