Skip to content

Instantly share code, notes, and snippets.

@dragonlinux
Last active December 19, 2015 22:18
Show Gist options
  • Save dragonlinux/6026026 to your computer and use it in GitHub Desktop.
Save dragonlinux/6026026 to your computer and use it in GitHub Desktop.
#!/bin/bash
tmpfile=/tmp/$$.txt
iconv -f cp936 -t utf-8 $1 > $tmpfile
mv $tmpfile $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment