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‘);
}
时间: 2024-10-07 05:25:00
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‘);
}