#31880 [Opn->Bgs]: SoapClient complains about string with umlauts.

From: Date: Thu, 10 Feb 2005 09:27:14 +0000
Subject: #31880 [Opn->Bgs]: SoapClient complains about string with umlauts.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-73740@lists.php.net to get a copy of this message
ID: 31880 Updated by: johannes@php.net Reported By: tschlottke at virtualminds dot de -Status: Open +Status: Bogus Bug Type: SOAP related Operating System: linux PHP Version: 5.0.3 New Comment: No it doesn't do "transparent guessing" which encoding you've used. Previous Comments: ------------------------------------------------------------------------ [2005-02-09 09:28:07] tschlottke at virtualminds dot de Uhm, shouldn't this be done transparently by ext/soap like in every SOAP-Class I've used so far? They all encode transparently on client-side and decode on server side. Or is this just working correctly in wsdl-mode? If I am wrong, just mark as bogus and I'll find another way workin' around this. ------------------------------------------------------------------------ [2005-02-08 22:32:06] johannes@php.net Are you sure you're using UTF-8? Try if utf8_encode()ing the name of the method as proposed in the Exception. ------------------------------------------------------------------------ [2005-02-08 10:39:28] tschlottke at virtualminds dot de Description: ------------ When I try to call a Soap-Method via SoapClient with any umlaut-containing string, soapclient complains that the string is not a valid utf8-encoded string. It seems to differ from #29999, which was a problem of libxml2. I've upgraded libxml2 to cvs, the problem described in #29999 is fixed in my libxml2 so I think this should be a PHP-issue. Reproduce code: --------------- <?php $client = new SoapClient(...); $client->anyMethod("Benutzer hinzufügen"); ?> Actual result: -------------- Uncaught SoapFault exception: [SOAP-ENV:Client] SOAP-ERROR: Encoding: string 'Recht hinzufügen' is not a valid utf-8 string in /var/www/adition_gui/includes/classes/rpc.class.php:29 Stack trace: #0 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31880&edit=1

« previous php.bugs (#73740) next »