回复 7# 小白龙
可以自己弄个编码名字对照表,例如- $the=@{'ANSI'='Default';'UTF-8'='UTF8';'UTF-8_BOM'='UTF8';'UTF-16_BE'='BigEndianUnicode';'UTF-16_LE'='Unicode';}
- $enc = & "coder.exe" -s -a gc -f "0.txt"
- $textContent = Get-Content -Path "$home\desktop\a.txt" -enc ($the[$enc])
复制代码
|