enca 查看文件的编码
convmv 文件名编码批量转换
---------------------------------------java文件转为utf8---------------------------------------
#!/bin/bash
find . -name '*.java' -exec sh -c "iconv -f GB18030 -t UTF8 {} > {}.java" ;
find . -name '*.java.java' | while read i
do
echo "$i";
mv $i $(echo $i|sed 's/.java//')
done
-----------------------------------------------------------------
gbk to utf8
----------------utf8.sh------------------------
iconv -f GBK -t UTF8 $1>$1.tmp
mv $1.tmp $1
--------------------------------------------------
gem sources --remove https://rubygems.org/
gem sources -a http://ruby.taobao.org/
sudo gem install cocoapods
------
hdiutil attach ~/android.dmg -mountpoint /Volumes/android //安装dmg