ID:               28969
 Updated by:       [EMAIL PROTECTED]
 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

Reply via email to