I am working on project which includes communication of the server (JavaEE app) and client (Android app). XML is sent as one of POST parameters of the HTTP request (named \"
After much research and attempts to make things working, I finally found a solution for the problem, that is a simple addition to existing code. Solution was to use parameter "UTF-8" in the UrlEncodedFormEntity class constructor:
form = new UrlEncodedFormEntity(nameValuePairs,"UTF-8");
After this change, characters were encoded and delivered properly to the server side.