PHP GBK UTF8互转
function gbk_to_utf8($str){
return mb_convert_encoding($str, 'utf-8', 'gbk');
}
function utf8_to_gbk($str){
return mb_convert_encoding($str, 'gbk', 'utf-8');
}
return mb_convert_encoding($str, 'utf-8', 'gbk');
}
function utf8_to_gbk($str){
return mb_convert_encoding($str, 'gbk', 'utf-8');
}