What about the java.net.URLEncoder ? It behaves slightly differently from what 
is described in RFC-3986 (translates the space char as + instead of %20), but 
may be it will do the job for you ?

If you want "true" URI escaping, maybe you should take a look at 
http://code.google.com/p/gdata-java-client/source/browse/trunk/java/src/com/google/gdata/util/common/base/CharEscapers.java
 and its uriEscaper(..). Not tried in practice, but it looks good.

-- CFR

On 2 déc. 2009, at 08:03, Eduardo Martins wrote:

> Hello, does the new HTTP Client API provides any means for percent encoding
> the request URI ?
> 
> -- Eduardo
> 
> -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
> http://emmartins.blogspot.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to