Re: Re: Problem with UTF-8

Gaetano Giunta <[email protected]> Fri, 14 Sep 2007 11:36:11 +0200
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
if the server is in PHP, AND you are using the standard xmlrpc library 
(that is, the native xmlrpc extension) to build it (as far as I can 
tell), you can
- use utf8_encode() on your php data before sending it to the xmlrpc 
encoding layer
- use a header() call in your server php script to set Content-type: 
text/xml; charset=iso-8859-1 (note: syntax is by memory, it might be a 
little different)
- send a modified xml prologue, as you proposed. Using "iso-8859-1"
either will work.

If you are using a different php xmlrpc implementation server side, 
chances are there is some support for charset encoding in your toolkit

> On Fri, Sep 14, 2007 at 07:41:30AM -0000,
> luisicozgz <[email protected] <mailto:luisicozgz%40yahoo.com>> wrote
> a message of 464 lines which said:
>
> > I have in PHP(Server) the next line to create the xml file:
>
> I do not understand. The XML-RPC server is written in Java or in PHP?
>
> > The Java Source file is encoding in UTF-8.
>
> Irrelevant.
>
> > The response XML-RPC:
> >
> > <?xml version="1.0"?> <-----Must appear hear encoding="utf-8"?
>
> No, this is the default in XML.
>
> As explained by Gaetano Giunta, there is a discrepancy between the
> *claim* (no encoding, which means encoding is UTF-8) and the *reality*
> (Latin1 actually used).
>
> To fix the discrepancy, you can change the claim or you can change the
> reality. As Gaetano said, choose the easiest way.
>
>  



[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/xml-rpc/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/