Post UTF-8 encoded data to server loses certain characters

后端 未结 6 1930
旧巷少年郎
旧巷少年郎 2020-12-02 12:31

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 \"

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 13:08

    String finalString = URLEncoder.encode(request, "UTF-8");
    
    return finalString;
    

    user finalString in your post method.

提交回复
热议问题