Re: How to encode GET parameter to iso-8859-1?

2008-06-09 Thread Bas Schulte
On 9-jun-2008, at 23:44, Oleg Kalnichevski wrote: get.setQueryString( EncodingUtil.formUrlEncode( new NameValuePair[] { new NameValuePair("data", "blah")}, "iso-8859-1")); Hope this helps It sure did, works great. Thanks! -

Re: How to encode GET parameter to iso-8859-1?

2008-06-09 Thread Oleg Kalnichevski
On Mon, 2008-06-09 at 18:51 +0200, Bas Schulte wrote: > Hi, > > I need to encode my parameters in a GET request to a given host in > iso-8859-1. How would I go about that with httpclient (3.1)? > > There's EncodingUtil.getBytes that gives me a byte[]: > > String messageData = "blah"; > > byte

How to encode GET parameter to iso-8859-1?

2008-06-09 Thread Bas Schulte
Hi, I need to encode my parameters in a GET request to a given host in iso-8859-1. How would I go about that with httpclient (3.1)? There's EncodingUtil.getBytes that gives me a byte[]: String messageData = "blah"; byte[] bytes = EncodingUtil.getBytes(messageData, "iso-8859-1"); How do I f