thanks kurt.  that did it... here's the change:

in xmlrpc.inc:
in class xmlrpcmsg function xml_header():
ORIGINALLY:
  function xml_header() {
        return "<?xml version=\"1.0\"?>\n<methodCall>\n";
  }

NOW:
  function xml_header() {
        return "<?xml version=\"1.0\"
encoding=\"ISO-8859-1\"?>\n<methodCall>\n";
  }


-----Original Message-----
From: Kurt Ward [mailto:[EMAIL PROTECTED]
Sent: Monday, April 22, 2002 3:38 PM
To: [email protected]
Subject: Re: newbie question


I'm pretty sure this is an encoding problem with the way strings are handled
in 1.0 where the encoding was
changed from ISO-8859 to UTF-8.  The current XML-RPC plugin currently sends
messages with the default
 ISO-8859.  We are currently working on a new API for the server that will
change all of this pretty soon.
In the meantime, I think in the XML-RPC configuration for PHP you can
specify the encoding.

Kurt

----- Original Message -----
From: "David Viner" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, April 22, 2002 6:02 PM
Subject: newbie question


> hi
> i'm trying to insert a document thru the XMLRPC interface to xindice. but
i
> continue getting this error message:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
>
> also in my console window in which xindice was started I get this error
> message:
> Fatal error parsing XML: Document contains illegal control character with
> value 0
>
> i can successfully insert a small version of the file.  but when i add
this
> line:
>
> <para>As the 6th leading cause of chronic disease in America, allergies
> deserve a serious look.</para>
>
> i get the error messages described.  this additional line of xml doesn't
> look particularly harmful nor peculiar, so i think i'm just missing
> something obvious.  is there some size limit?
>
> thanks
> dave


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to