Well, I understand the motivation and on the surface it sounds sane
enough.  XML-RPC is woefully underspecified where encoding is concerned
unfortunately.  Only ASCII characters are really guaranteed.

Maybe we should incorporate this patch but not shout about it too much
:)

On Mon, 2002-05-27 at 01:38, Miles Lott wrote:
> This seems reasonable.  Edd?
> 
> Víctor R. Ruiz wrote:
> > 
> >   Hola:
> > 
> > El Dom 26 May 2002 21:48, Miles Lott tecleó:
> > > I am also not sure what you are asking, but on line 99 of
> > > xmlrpc.inc: $xmlrpc_defencoding='UTF-8';
> > 
> >   What if you want to send the XML in another encoding? For example:
> > $xmlrpc_defencoding='ISO-8859-1'. Right now, the library doesnt send
> > information about the encoding currenntly used. That's why I proposed
> > the modification of the service function:
> > 
> > >     function service() {
> > >         global $xmlrpc_defencoding;
> > >
> > >         $r=$this->parseRequest();
> > >         $payload="<?xml version=\"1.0\"
> > >>>>                    encoding=\"$xmlrpc_defencoding"?>\n" .
> > >             $this->serializeDebug() .
> > >             $r->serialize();
> > >         Header("Content-type: text/xml\r\nContent-length: " .
> > >                      strlen($payload));
> > >         print $payload;
> > >     }
> > 
> >   Greetings,
> > 
> > --
> > Víctor R. Ruiz           | - Todos estos momentos se perderán, como
> > http://rvr.infoastro.com |   lágrimas en la lluvia.
> 

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to