Hi,
I have a PostMethod instance, to which I set URI using set URI API. This
always gives error "escaped absolute path not valid" whenever URL has
chinese or japanese characters in it. How do I make sure URI for POSTMethod
is executed properly. 

I tried sing HTTPMethodParams to set charset for HTTP ELEMENT and HTTP URL
Charset but no use.
Here is code snippet. 

PostMethod method = new PostMethod();

HttpMethodParams params = new HttpMethodParams();
 method.addParameter(HttpMethodParams.HTTP_ELEMENT_CHARSET, "UTF-8");
 method.addParameter(HttpMethodParams.HTTP_URI_CHARSET, "UTF-8");

method.setURI(new URI(urlString));//This call fails

please help.

thanks,
Sandeep




-- 
View this message in context: 
http://old.nabble.com/escaped-absolute-path-not-valid-error-with-URLs-having-GB18030-or-japansese-characters-in-them-tp27124775p27124775.html
Sent from the HttpClient-User mailing list archive at Nabble.com.


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

Reply via email to