Re: [SOAP] encoding, soap faults and more

From: Date: Mon, 26 May 2003 18:01:46 +0000
Subject: Re: [SOAP] encoding, soap faults and more
References: 1 2 3  Groups: php.soap 
Request: Send a blank email to php-soap+get-684@lists.php.net to get a copy of this message
Sagi Bashari wrote:
On 26/05/2003 20:19, Shane Caraveo wrote:
Well, only ISO-8859-1, UTF-8 and US_ASCII are supported by the XML extension in PHP, which the soap library relies on. You should simply be able to use the xml_utf8_encode function, but if that doesn't work, I'm not sure what I can do about it. The ISO-8859-* encodings can map down to ISO-8859-1 just fine without any 'conversion' of the data, which should work for the transport layer, and as long as both ends know to treat that data as ISO-8859-8, you should be ok. Sahne
I know that I can use ISO-8859-1, but my problem is that SOAP_Fault ignores my encoding settings and outputs the error with UTF-8 encoding. Sagi
Ok, sorry, didn't read the entire email. For now you can change the encoding manually in Base.php, by changing the line: define('SOAP_DEFAULT_ENCODING', 'UTF-8'); To define('SOAP_DEFAULT_ENCODING', 'ISO-8859-1'); I'll have to fix SOAP_Fault to take an encoding somehow. Shane

« previous php.soap (#684) next »