-
March 31st, 2011, 11:40 AM
#1
HttpClient UTF8
Hi, I have the following code:
final HttpClient httpclient = new DefaultHttpClient();
final HttpPost httpPost = new HttpPost("http://www.admetesoft.com/test.php");
ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("id",simiosi));
nameValuePairs.add(new BasicNameValuePair("test","λολ"));
httpPost.setEntity(new UrlEncodedFormEntity(nameValuePairs));
The problem is that althouth latin characters display in my sql database, greek characters does not display correct. I try different collations in my database but the problem still exist. How can I set the encoding of the characters in HttpClient;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|