似乎每次提交 Windows 8 应用程序时都会遇到相同的 UTF-8 错误。
是否有更快的方法将一批文件转换为 UTF-8 格式?
最佳答案
您可以使用下面的 PowerShell 脚本将目录中的所有文件转换为 UTF-8。
$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 操作.
关于windows-8 - 将 Windows 8 应用程序的 Web 应用程序文件转换为 UTF-8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16550337/