SoapFault and encoding option

From: Date: Fri, 18 May 2007 13:04:36 +0000
Subject: SoapFault and encoding option
Groups: php.soap 
Request: Send a blank email to php-soap+get-2537@lists.php.net to get a copy of this message
I've got some strange behavior when using SoapFault object with non default encoding option: $server=new SoapServer("test3.wsdl",array('encoding'=>'ISO-8859-2')); When function a() is defined as follows: function a() { return " ... some iso-8859-2 characters ..."; } everything works as expected when I've changed it to: function a() { throw new SoapFault("Server"," ... some iso-8859-2 characters ..."); } I've got: Fatal error: Uncaught SoapFault exception: [Sender] looks like we got no XML document with plain ASCII everything is fine. JG

« previous php.soap (#2537) next »