|
From: <jer...@li...> - 2006-08-16 13:48:42
|
Hi, I'm actually using xmlrpc function from devel snapshot. I've got two suggestions on "xmlrpc.cgi" code. 1) Specify encoding which helps xml parser. I've got some annoying=20 exceptions with my python xmlrpc client if I don't specify it. 2) Why choose "::" as separators ? I change it by "." which is, I think,=20 more "XMLRPC RFC compliant". Here is my diff file. 54c55 < my $xmlrv =3D "<?xml version=3D\"1.0\"?>\n"; --- > my $xmlrv =3D "<?xml version=3D\"1.0\" encoding=3D\"ISO-8859-1\"?>\n"; 59,60c60,61 < my ($mod, $func) =3D $mn->[1]->[2] =3D~ /::/ ? < split(/::/, $mn->[1]->[2]) : (undef, $mn->[1]->[2= ]); --- > my ($mod, $func) =3D $mn->[1]->[2] =3D~ /\./ ? > split(/\./, $mn->[1]->[2]) : (undef,=20 $mn->[1]->[2]); Hope this could help you. Cordially, Wax J=E9r=F4me ----------------------------------- http://www.lo2k.net |