How to send unicode characters in an HttpPost on Android

前端 未结 1 550
说谎
说谎 2021-02-13 04:57

I\'m trying to allow multilingual support in my app which makes an HTTP post to upload new messages. What do I need to do in order to support japanese & other non latin bas

相关标签:
1条回答
  • 2021-02-13 05:40

    Try setting encoding on StringEntity:

    StringEntity stringEntity = new StringEntity(msg, "UTF-8");
    
    0 讨论(0)
提交回复
热议问题