windows-8 - 将 Windows 8 应用程序的 Web 应用程序文件转换为 UTF-8

标签 windows-8 utf-8

似乎每次提交 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/

相关文章:

c# - 旧的原生应用程序可以在Windows8平板电脑上运行吗?

linux - 在 Vim 终端 lightline 状态栏中显示 ► 字符

utf-8 - Google Actions - 使用 AWS API Gateway 时的 UTF-8 解码

php - TinyMCE UTF-8 保存到 MySQL 数据库

Win RT 上的 Java 支持

c# - 如何使 Windows 8 Metro 滚动查看器响应鼠标滚轮?

c# - 尝试从 Windows Phone 8.1 : "The application identifier provided is invalid" 中的 backgroundaudiotask 更新 livetile

windows-8 - Windows 8 Internet Explorer 10 vhd?有人找到了吗?

python - 如何识别Python中不可打印的unicode字符

ruby 安装jcode