ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Wilson" <...@wilson.co.uk>
Subject Re: Entity references incorrectly sent
Date Wed, 12 Nov 2003 19:27:41 GMT
Jesus M. Salvo Jr. wrote:
> Assuming I have the following code, where I try to send pound symbol:
>
>      Vector    params = new Vector();
>      Hashtable hashParams = new Hashtable();
>      hashParams.put( "msg", "&#163;" );
>      params.add( hashParams );
>
>      client.execute( "XMLRPCHandler.getContent", params );
>
> Problem is that, the XML-RPC API sends
>     &#163;
> as
>     &amp;#163;

That's what it is supposed to do.

Just do:

hashParams.put( "msg", "£" );

and the system will deal with the encoding for you.

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


Mime
View raw message