You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@ws.apache.org by as...@ieuskadi.com on 2002/10/29 12:33:34 UTC

Encoding

Hi everybody,
      I am finding too a little bit of lack of activity in the
"/www.xmlrpc.com" site. I put a question in the forum there and I didnĀ“t
get no answer, at last I found the solution to the problem I was facing,
and responded my own question so that somebody else could benefit from it.
Now I have another question and I might have to respond it myself again,
but nevertheless, here it goes:

                                                                                               
                                                                                               
                                                                                               
                                                                                               
                                                                                               
                                                                                               
   Does anybody know howto stablish an encoding "UTF-8" within a xml-rpc session? I wouldn't   
   like to have to convert every String in my xml one by one calling sth like "String.getBytes 
   ("UTF-8")"                                                                                  
                                                                                               
                                                                                               
   Can't I stablish the encoding for the whole conversation?                                   
                                                                                               
                                                                                               
   org.apache.xmlrpc.XmlRpc Class does have a setEncoding method, but                          
   org.apache.xmlrpc.XmlRpcClient class, the one I am using, doesn't.                          
                                                                                               
                                                                                               
   Any help?                                                                                   
                                                                                               
                                                                                               
                                                                                               





Thanks.



Re: Encoding

Posted by John Wilson <tu...@wilson.co.uk>.
asier.axpe@ieuskadi.com wrote:
[snip]

>    Does anybody know howto stablish an encoding "UTF-8" within a xml-
> rpc session? I wouldn't
>    like to have to convert every String in my xml one by one calling
> sth like "String.getBytes
>    ("UTF-8")"

The encoding doesn't matter that much. Any encoding can be used to transmit
any Unicode character as the numeric character entities can be used to send
arbitrary Unicode characters.

Adam Megacz proveded a patch the XMLWriter to do these escapes in August and
it was committed to CVS.

John Wilson
The Wilson Partnership
http://www.wilson.co.uk



Re: Encoding

Posted by John Wilson <tu...@wilson.co.uk>.
asier.axpe@ieuskadi.com wrote:
[snip]

>    Does anybody know howto stablish an encoding "UTF-8" within a xml-
> rpc session? I wouldn't
>    like to have to convert every String in my xml one by one calling
> sth like "String.getBytes
>    ("UTF-8")"

The encoding doesn't matter that much. Any encoding can be used to transmit
any Unicode character as the numeric character entities can be used to send
arbitrary Unicode characters.

Adam Megacz proveded a patch the XMLWriter to do these escapes in August and
it was committed to CVS.

John Wilson
The Wilson Partnership
http://www.wilson.co.uk