1-签名中的body是中文下,文件非utf-8时会报错,基本都是编号不一致导致,php中通过如下可解决
$fileType = mb_detect_encoding($getbody , array('UTF-8','GBK','LATIN1','BIG5')) ;
if( $fileType != 'UTF-8'){
$getbody = mb_convert_encoding($getbody ,'UTF-8' , $fileType);
}
1-签名中的body是中文下,文件非utf-8时会报错,基本都是编号不一致导致,php中通过如下可解决
$fileType = mb_detect_encoding($getbody , array('UTF-8','GBK','LATIN1','BIG5')) ;
if( $fileType != 'UTF-8'){
$getbody = mb_convert_encoding($getbody ,'UTF-8' , $fileType);
}
88

被折叠的 条评论
为什么被折叠?