软件:phpStudy2018 环境:php7.0.12 nts Apache 程序:EmpireCMS_7.5_SC_UTF8
  在php5.4/5.5/5.6版本均正常,php7.0版本下支付宝,支付提示:
  调试错误,请回到请求来源地,重新发起请求。 错误代码 ILLEGAL_SIGN
 
  ====================================== /e/payapi/pay.php
  //编码 if($ecms_config['sets']['pagechar']!='gb2312') {         @include_once("../class/doiconv.php");         $iconv=new Chinese('');         $char=$ecms_config['sets']['pagechar']=='big5'?'BIG5':'UTF8';         $targetchar='GB2312';         $productname=$iconv->Convert($char,$targetchar,$productname);         $productsay=$iconv->Convert($char,$targetchar,$productsay);         @header('Content-Type: text/html; charset=gb2312'); }
  上面的代码,把汉字转成了乱码。%80%80%80%80 导致支付错误!
 
  不知道谁遇到这个问题了,有办法结解决吗?
								 |