Skip to content

Instantly share code, notes, and snippets.

@ambar
Created January 18, 2012 15:37
Show Gist options
  • Save ambar/1633576 to your computer and use it in GitHub Desktop.
Save ambar/1633576 to your computer and use it in GitHub Desktop.
powershell convert file encoding
# 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