cmd调用powershell实现文件编码格式的转换
PowerShell -Command "& {get-content old.txt -encoding utf8 | set-content new.txt -encoding unicode}"
附所有编码格式:String, Unicode, Byte, BigEndianUnicode, UTF8, UTF7, UTF32, Ascii, Default, Oem, BigEndianUTF32
cmd调用powershell实现文件编码格式的转换
PowerShell -Command "& {get-content old.txt -encoding utf8 | set-content new.txt -encoding unicode}"
附所有编码格式:String, Unicode, Byte, BigEndianUnicode, UTF8, UTF7, UTF32, Ascii, Default, Oem, BigEndianUTF32