gb2312 转 utf-8
Posted 11 months, 1 week ago at 11:32 am. 0 comments
ad 468x60
find . -name “*.txt” |xargs -I ‘{}’ iconv_gb2u ‘{}’
find . -name “*.htm” |xargs -I ‘{}’ iconv_gb2u ‘{}’
find . -name “*.php” |xargs -I ‘{}’ iconv_gb2u ‘{}’
find . -name “*.sql” |xargs -I ‘{}’ iconv_gb2u ‘{}’
#echo “Modify libs/mysql.class.php, change set names gbk to utf8.”
# echo “Modify tpls/head.htm, head.emp.html, change http-equiv gbk to utf9″
replace “charset=gbk” “charset=utf8″ — install/*.php
replace “CHARSET=gbk” “charset=utf8″ — install/*.php
replace “SET NAMES ‘gbk’” “SET NAMES ‘utf8′” — libs/mysql.class.php
replace “charset=gbk” “charset=utf8″ — tpls/*.htm
# For safe
chmod -x `basename $0`
来自 fwolf blog,那里有些解释,这正是我所需要的。
Popularity: 7% [?]
Tags: blog, hp, install, ls, vi
ad 468x60
Related posts
No Replies
Feel free to leave a reply using the form below!