Hi, I have a web service created using the Zend Framework. One of the methods is designed to send order information. I ran into an encoding problem. One of the return values contains the following:
Jaime Torres Bode # 322-Colonel Lomas de Santa Maria
The web service returns the following error:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>SOAP-ERROR: Encoding: string 'Jaime Torres Bodet #322-A Col. Lomas de Santa Mar\xc3...' is not a valid utf-8 string</faultstring>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
How do I solve this problem?
Thanks
Continued: The problem is with a truncated row in the database. The field was set to VARCHAR (50), and it was truncated exactly in the middle of the encoded value.
source
share