Re: [phpxmlrpc] Re: PHP XML-RPC encoding
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=" > 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. > signature.asc Description: This is a digitally signed message part
Re: [phpxmlrpc] Re: PHP XML-RPC encoding
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=" 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. -- Miles Lott - phpGroupWare http://www.phpgroupware.org -- For information about how to subscribe and unsubscribe from this list visit http://xmlrpc.usefulinc.com/list.html
Re: [phpxmlrpc] Re: PHP XML-RPC encoding
I am also not sure what you are asking, but on line 99 of xmlrpc.inc: $xmlrpc_defencoding='UTF-8'; Edd Dumbill wrote: > > I'm copying your mail to the phpxmlrpc mailing list. I don't currently > have time to answer questions on this software, and I'm not entirely > sure what it is you are asking or telling me. > > I will note however that in the absence of any encoding declaration the > XML spec says UTF-8 should be assumed. > > Thanks > > Edd. > > On Wed, 2002-05-22 at 11:58, Víctor R. Ruiz wrote: > > > > Hi Edd: > > > > I'm using your PHP XML-RPC to serve a Blogger API implementation on > > Blogalia.com. I was having problems with character enconding and > > seems that your library doesnt return what map is in use. > > > > Take a look at this function (well, $xmlrpc_defenconding should be > > defined elsewhere if it's in blank). > > > > function service() { > > global $xmlrpc_defencoding; > > > > $r=$this->parseRequest(); > > $payload=" > 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. > -- > Edd Dumbill | phone: +44 1904 427740 |-- > | Managing Editor, XML.com, XMLhack.com -- Chair, XML Europe 2002 > | I PGP sign my email; more info at http://heddley.com/edd/pgp.html > > >Name: signature.asc >signature.asc Type: application/pgp-signature > Description: This is a digitally signed message part -- Miles Lott - phpGroupWare http://www.phpgroupware.org -- For information about how to subscribe and unsubscribe from this list visit http://xmlrpc.usefulinc.com/list.html
[phpxmlrpc] Re: PHP XML-RPC encoding
I'm copying your mail to the phpxmlrpc mailing list. I don't currently have time to answer questions on this software, and I'm not entirely sure what it is you are asking or telling me. I will note however that in the absence of any encoding declaration the XML spec says UTF-8 should be assumed. Thanks Edd. On Wed, 2002-05-22 at 11:58, Víctor R. Ruiz wrote: > > Hi Edd: > > I'm using your PHP XML-RPC to serve a Blogger API implementation on > Blogalia.com. I was having problems with character enconding and > seems that your library doesnt return what map is in use. > > Take a look at this function (well, $xmlrpc_defenconding should be > defined elsewhere if it's in blank). > > function service() { > global $xmlrpc_defencoding; > > $r=$this->parseRequest(); > $payload=" 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. -- Edd Dumbill | phone: +44 1904 427740 |-- | Managing Editor, XML.com, XMLhack.com -- Chair, XML Europe 2002 | I PGP sign my email; more info at http://heddley.com/edd/pgp.html signature.asc Description: This is a digitally signed message part