Re: UTF-8 Encoding Enquiry

2004-10-14 Thread Ramiel Fong
Dear Oleg Thanks a lot!! The program now runs smoothly without any problem. Thanks again! Regards Ramiel - Original Message - From: Oleg Kalnichevski [EMAIL PROTECTED] To: Commons HttpClient Project [EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 7:45 PM Subject: Re: UTF-8

UTF-8 Encoding Enquiry

2004-10-13 Thread Ramiel Fong
Hi~! Thanks in advance for those who will be looking into my problem. I am having difficulty in sending chinese characters via postmethod. // Create an instance of HttpClient HttpClient httpclient = new HttpClient(); // Create a method instance PostMethod postmethod = new PostMethod(url); //

Re: UTF-8 Encoding Enquiry

2004-10-13 Thread Oleg Kalnichevski
Ramiel, I think you came pretty close. Two things require minor corrections (1) Content-Type HTTP POST per default uses so called URL encoding when submitting HTML forms. Setting the content type to 'text/plain' may cause some web servers to misinterpret the request parameters Try this instead