Re: "Not a valid utf-8 string"
| From: | Mathieu | Date: | Thu, 21 Apr 2005 09:09:40 +0000 |
| Subject: | Re: "Not a valid utf-8 string" | ||
| References: | 1 2 3 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1885@lists.php.net to get a copy of this message | ||
Thank you for your answer. Using utf8_encode(), my problem is solved.
It seems I needn't use utf8_decode().
Mathieu,
Christian Wenz writes:
In a webservice I developed I have answers with characters like à, é, è, ñ,... I have the following problem : <faultstring>SOAP-ERROR: Encoding: string 'Français' is not a valid utf-8 string</faultstring> What can be done to solve that ?have you tried uto8_encode()/utf8_decode()? IIRC NuSOAP does this automagically, whereas PEAR::SOAP and PHP5-SOAP leave it up to you. Regards Christian -- http://www.hauser-wenz.de/ http://www.hauser-wenz.de/blog/ -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php