#28969 [Asn->Csd]: Wrong data encoding of special characters

From: Date: Tue, 10 Aug 2004 16:37:25 +0000
Subject: #28969 [Asn->Csd]: Wrong data encoding of special characters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-64377@lists.php.net to get a copy of this message
ID: 28969 Updated by: dmitry@php.net Reported By: ba at esoft dot dk -Status: Assigned +Status: Closed Bug Type: SOAP related Operating System: Linux 2.6.7-gentoo-r3 PHP Version: 5.0.0RC3 Assigned To: dmitry New Comment: Fixed in CVS HEAD. By default ext/soap espect all string data in utf-8 encoding. Now it is possible to change internal encoding with "encoding" option. It is acceptable both by SoapClient and SoapServer. $SOAP = new SoapServer("test.wsdl", array('encoding'=>'ISO-8859-1'); Previous Comments: ------------------------------------------------------------------------ [2004-06-30 09:38:43] ba at esoft dot dk Description: ------------ I'm using SOAP webservices and need to send special characters (danish letters in my case) in the data, it seems these letters break the SOAP parser. Previously we have used NuSOAP for webservices, and here special letters are encoded / decoded transparantly. Reproduce code: --------------- class testWebservice { function test() { return "æøå"; } } $SOAP = new SoapServer("test.wsdl"); $SOAP->setClass("testWebservice"); $SOAP->handle(); Expected result: ---------------- The returned string "æøå" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28969&edit=1

« previous php.bugs (#64377) next »