Skip to content

Instantly share code, notes, and snippets.

@aguegu
Forked from dragonlinux/cp936totuf8.sh
Last active December 19, 2015 23:39
Show Gist options
  • Save aguegu/6035809 to your computer and use it in GitHub Desktop.
Save aguegu/6035809 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