gabrielbull / php-ups-api

PHP Wrapper for all UPS API
MIT License
456 stars 255 forks source link

String could not be parse as XML at src/Request.php:137 #378

Open SeanBerce opened 8 months ago

SeanBerce commented 8 months ago

Some responses from UPS contain and encoded single quote  which causes a failure here "gabrielbull/ups-api/src/Request.php:137". The convertEncoding method doesn't fix the issue.

Context:


<ReasonDescription>
    WE WERE UNABLE TO DELIVER YOUR PACKAGE. IT&#26;S ON THE WAY TO A SECURE UPS ACCESS POINT LOCATION FOR PICK UP.
</ReasonDescription>