Created
January 18, 2012 15:37
-
-
Save ambar/1633576 to your computer and use it in GitHub Desktop.
powershell convert file encoding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mkdir | |
md output | |
# get-content , set-content -encoding | |
# 括号是必须的 | |
ls *.txt | %{ gc $_ | sc -en utf8 ('output/'+$_.name) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment