Skip to content

Instantly share code, notes, and snippets.

@lysu
Created February 16, 2013 07:14
Show Gist options
  • Save lysu/4965920 to your computer and use it in GitHub Desktop.
Save lysu/4965920 to your computer and use it in GitHub Desktop.
unicode to utf8
perl -e 'binmode STDOUT,":utf8"; while(<>){s/\\u(....)/(pack("U", hex($1)))/eg; print ;}'
@lysu
Copy link
Author

lysu commented Feb 16, 2013

iconv -c -s -f utf8 -t gbk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment