<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">


<META content="MSHTML 6.00.2800.1528" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>The 
most likely cause is your web-service server NOT putting a correct charset 
specification in the HTTP headers that accompany the xmlrpc response you pasted 
below. There is no charset specification in the xml prologue (the &lt;?xml ?&gt; 
tag) of the response, either.</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>As per 
the HTTP standard, if you do not specify a charset, for content of type text/*, 
such as xmlrpc is,&nbsp;the assumed charset MUST be 
US-ASCII.</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>Lots 
of libraries break the spec, and the phpxmlrpc lib by defaults assumes that, 
when unspecified, the charset used by the partner is UTF-8.</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>If the 
xml parsing broke on your request, you are most likely not using 
UTF-8.</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>You 
are not using ASCII, either, because there are no accented chars in ascii 
;)</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>My 
best guess is you are using ISO-8859-1, which is, luckily, pretty well supported 
by phpxmlrpc.</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>You 
should either:</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>1 - 
modify the server code to have it specify a correct charset, either in the HTTP 
headers or the xml prologue, or</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>2 - 
modify the server code to emit UTF-8 encoded data, or</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>3 - 
change one line of code in your php client:</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>after 
having included the xmlrpc.inc file, set</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff 
size=2>$GLOBALS['xmlrpc_defencoding']='ISO-8859-1'</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff size=2>If 
method 3 does not work, there might be some other problems I cannot decipher 
without a screen dump of the client debug mode.</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff 
size=2>Bye</FONT></SPAN></DIV>
<DIV><SPAN class=940445615-06022006><FONT face=Arial color=#0000ff 
size=2>Gaetano</FONT></SPAN></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> 
  phpxmlrpc-bounces@lists.usefulinc.com 
  [mailto:phpxmlrpc-bounces@lists.usefulinc.com]<B>On Behalf Of </B>Overpeer 
  ---<BR><B>Sent:</B> Monday, February 06, 2006 4:21 PM<BR><B>To:</B> 
  phpxmlrpc@lists.usefulinc.com<BR><B>Subject:</B> [phpxmlrpc] Accents in 
  phpxmlrpc<BR><BR></FONT></DIV>Hello.<BR><BR>Some of my functions return a 
  accents vocals like 'á' or 'é' for example, then the phpxmlrpc return a 
  error:<BR><BR><FONT face=arial color=red size=2><B>Fault: </B></FONT><FONT 
  face=arial color=black size=2>Code: 2 Reason 'Invalid return payload: enable 
  debugging to examine incoming payload (XML error: not well-formed (invalid 
  token) at line 16)'<BR><BR>The invalid token apperas always, when a accent 
  vocal is in the return string, like this:<BR><BR>&lt;?xml 
  version="1.0"?&gt;<BR>&lt;methodResponse&gt;<BR>&nbsp;&nbsp; 
  &lt;params&gt;<BR>&nbsp;&nbsp; &lt;param&gt;<BR>&lt;value&gt;<BR>&nbsp; 
  &lt;array&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;data&gt;<BR>&lt;value&gt;<BR>&nbsp; 
  &lt;struct&gt;<BR>&nbsp;&nbsp;&nbsp; 
  &lt;member&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;name&gt;FECHA&lt;/name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;value&gt;&lt;dateTime.iso8601&gt;20060206T15:17:40&lt;/dateTime.iso8601&gt;&lt;/value&gt;<BR>&nbsp;&nbsp;&nbsp; 
  &lt;/member&gt;<BR>&nbsp;&nbsp;&nbsp; 
  &lt;member&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;name&gt;TIPO&lt;/name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;value&gt;&lt;string&gt;Incidencia 
  genérica&lt;/string&gt;&lt;/value&gt;&nbsp;&nbsp; &lt;----- Line 
  16<BR>[...]<BR><BR><BR>How i can view this specials characters ???<BR><BR>A 
  lot of thanks.<BR></BLOCKQUOTE></FONT></BODY></HTML>