You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlrpc-dev@ws.apache.org by jamel <ja...@gmail.com> on 2009/06/18 11:15:05 UTC

Change the xmlrpc server reponse encoding

Hi,
I would like to change the server response encoding from default value
(ISO-8859-1) to utf-8 such as I use the xmlrpc 3.1.

Regards
--Jamel
-- 
View this message in context: http://www.nabble.com/Change-the-xmlrpc-server-reponse-encoding-tp24089237p24089237.html
Sent from the Apache Xml-RPC - Dev mailing list archive at Nabble.com.


Re: Change the xmlrpc server reponse encoding

Posted by Jochen Wiedmann <jo...@gmail.com>.
On Thu, Jun 18, 2009 at 1:46 PM, John Wilson <tu...@wilson.co.uk> wrote:
>
> Is it? Where does the spec say that the encoding should be ISO 8859-1? http://www.xmlrpc.com/spec

You are right, I'll have to take that back.

Jochen



--
Don't trust a government that doesn't trust you.

Re: Change the xmlrpc server reponse encoding

Posted by John Wilson <tu...@wilson.co.uk>.
On 18 Jun 2009, at 10:46, Jochen Wiedmann wrote:

> You are aware, that this is a violation of the XML-RPC spec, aren't  
> you?

Is it? Where does the spec say that the encoding should be ISO 8859-1? http://www.xmlrpc.com/spec

All the examples in the spec have no encoding declaration so you could  
argue that the only allowed encodings are UTF-8 or UTF-16.

Equally the spec says that the content-type is text/xml with no  
encoding specified so, strictly, the encoding should be USASCII.

My advice to implementer on the XML-RPC list has always been to not  
use an encoding declaration, and replace all non USASCII characters  
with character references. I think this gives you the best change of  
interoperability.

John Wilson


Re: Change the xmlrpc server reponse encoding

Posted by Jochen Wiedmann <jo...@gmail.com>.
You are aware, that this is a violation of the XML-RPC spec, aren't you?

If so, you've got to create a custom instance of XmlWriter and a
corresponding XmlWriterFactory and set that on your XmlRpcServer
instance.

Jochen


On Thu, Jun 18, 2009 at 11:15 AM, jamel<ja...@gmail.com> wrote:
>
> Hi,
> I would like to change the server response encoding from default value
> (ISO-8859-1) to utf-8 such as I use the xmlrpc 3.1.
>
> Regards
> --Jamel
> --
> View this message in context: http://www.nabble.com/Change-the-xmlrpc-server-reponse-encoding-tp24089237p24089237.html
> Sent from the Apache Xml-RPC - Dev mailing list archive at Nabble.com.
>
>



-- 
Don't trust a government that doesn't trust you.