Unknown: Invalid quoted-printable sequence: ="1.0" encoding="UTF-8"?>
Posté : 24 oct. 2018, 14:03
Bonjour a la communaute PHP France ,
j'ai un petit soucis avec ma fonction "ParseXML"
je reçois une erreur quand je parse mes emails via imap
voici la partie de la fonction qui fait problème (enfin je pense)
voici le genre d'email que je lis
avez vous deja eu un problème similaire ?
merci infiniment
j'ai un petit soucis avec ma fonction "ParseXML"
je reçois une erreur quand je parse mes emails via imap
Code : Tout sélectionner
PHP Notice: Unknown: Invalid quoted-printable sequence: ="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoa (errflg=3) in Unknown on line 0 Code : Tout sélectionner
public function ParseXML($xmlstr){
$your_xml_response = $xmlstr;
$clean_xml = str_ireplace(['soapenv:','ebl:'], '', $your_xml_response);
$enveloppe = new SimpleXMLElement(utf8_encode($clean_xml));
...
..
voici le genre d'email que je lis
Code : Tout sélectionner
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<ebl:RequesterCredentials soapenv:mustUnderstand="0" xmlns:ns="urn:ebay:apis:eBLBaseComponents" xmlns:ebl="urn:ebay:apis:eBLBaseComponents">
<ebl:NotificationSignature xmlns:ebl="urn:ebay:apis:eBLBaseComponents">8Hzx2j8W6sZ5QR5GgIuuQw==</ebl:NotificationSignature>
</ebl:RequesterCredentials>
</soapenv:Header>
<soapenv:Body>
<GetFeedbackResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2018-10-24T12:02:59.184Z</Timestamp>
<Ack>Success</Ack>
....
..
avez vous deja eu un problème similaire ?
merci infiniment