i want to build client/server application, the client is android (2.2) application, and the server is tomcat Java server ,IDE is Eclips
i want to send arabic data from server to client using servlet, i found this question here and it is very helpful ,but my problem is that when i used this:
info.setText(Farsi.Convert("وليم"));
it works good and print that arabic word, but when i print the arabic data comes from the server like this:
info.setText(Farsi.Convert(results[0]));
it prints strange english word so maybe the problem is on sending data from server to client, or in another place?
things may be helpful to know the problem
- i can print the arabic data on console on server and it works good
- the data is coming from mysql and the field is
utf8_unicode_ci
- i send the data from server to client using servlet like this:
response.setCharacterEncoding("UTF-8");response.setHeader("Info", word);
please any help!! ,because this application is my graduation project and i have to support arabic.
Thank You