创建一个文件utf8.txt.确保编码为UTF-8(无BOM).将其内容设置为€
utf8.txt
€
在cmd.exe:
cmd.exe
type utf8.txt > out.txt
内容out.txt是€
out.txt
在PowerShell(v4)中:
cat .\utf8.txt > out.txt
要么
type .\utf8.txt > out.txt
Out.txt内容是 €
€
如何全局使PowerShell正常工作?
powershell byte-order-mark utf-8 powershell-4.0
byte-order-mark ×1
powershell ×1
powershell-4.0 ×1
utf-8 ×1