Skip to content

Instantly share code, notes, and snippets.

@kenpusney
Created June 9, 2013 09:59
Show Gist options
  • Save kenpusney/5743005 to your computer and use it in GitHub Desktop.
Save kenpusney/5743005 to your computer and use it in GitHub Desktop.
view-chinese in utf-8.. Author: Kim Leo
#!/usr/bin/env bash
usage() {
echo "Usage: vc.sh <file>";
echo "view-chinese in utf-8.. Author: Kim Leo";
exit;
}
[ $# -eq 0 ] && usage;
TMP="/tmp/cview.tmp.$1";
enca -L zh -x UTF-8 < $1 > $TMP
vi $TMP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment