hi,
i am using apache http client lib to get rusult from
my jsp webpage.
the jsp page get a request like:text=....,and return a
result and show it on web.
when i enter a request like
:http://localhost/a.jsp?text=...(here is some chinese
words) at IE6.0,at the jsp file,i get the request
string ,and i use 
this.userRequest = new
String(this.userRequest.getBytes("8859_1"), "gb2312")
to get the chinese string.(gb2312 is a kind of chinese
encoding)
i succeed.

but when i can use apache http client:
String s="...";(here is some chinese words)
HttpClient httpClient = new HttpClient();
GetMethod get = new GetMethod("http://url/?text="+s);
int responseCode = httpClient.executeMethod(get);
String responseBody = get.getResponseBodyAsString();
System.out.print( responseBody);

i look in the jsp file,it can't print the right
chinese words.(though i have used  new
String(this.userRequest.getBytes("8859_1"), "gb2312")
in the jsp file.) 

i don't know what is the reason and how to do.
i look up in the mail list archive,and i can't find
the answer(someone seems meet the same problem,he use
big5).
can anyone help me?thanks...
sorry for my poor english. 



__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to