Re: SOAP character encoding bug

From: Date: Sun, 12 May 2002 14:17:21 +0000
Subject: Re: SOAP character encoding bug
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6061@lists.php.net to get a copy of this message
What about: read the first line //<?xml version="1.0" encoding="ISO-8859-1"?> if encoding != UTF { encode the whole xml in UTF } process re-code to the original encoding Doesn't PHP do that with strings? Tomas V.V.Cox Pd.- The XML "re-coding" functions could be provided by some other PEAR class "Stig S. Bakken" wrote: > > You specify the encoding when building the xmlrpc request. > > If you want to auto-detect, you need to restrict the choice of character > sets to UTF-8, one 8-bit and one 7-bit charset (typically ISO-8859-1 and > US-ASCII). And there must still be a way to specify the charset of > course. > > - Stig > > On Sat, 2002-05-11 at 20:41, Shane Caraveo wrote: > > thinking about it more, I've half convinced myself that the library > > should do the conversion automaticly. Anyone have any thoughts on this? > > Stig, what does the xml-rpc library do about this? > > Shane > > > > Pierre-Alain Joye wrote: > > >>If the xml document's encoding is UTF-8, the degree sign (in latin1 > > >>0xb0) must be represented as 0xc2 0xb0. If your xml is that in the > > >>userinfo below, it is indeed invalid. Try using utf8_encode(). > > > > > > You are right :), as "we" see in interop test files. I misunderstood the > > > soap_value class. > > > > > > Maybe it s in the todo list to take care automaticly about the encoding > > > method, but actually the decode method does not take care about it. > > > > > > It s up to the user to know the encoding method of the service. > > > > > > > > > > > > pa > > > > > > > > > > > > -- > PEAR Development Mailing List (http://pear.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.pear.dev (#6061) next »