If you are experiencing an issue please mention the full platform your issue applies to: IDE: NetBeans/Eclipse/IDEA Desktop OS Simulator Device
String nickName="网名"; String url =“http://localhost:8080/updateUser/+userID+"/"+nickName+"/"+email+”/“; 1) Solution one: Response<Map> jsonData = Rest.get(url).contentType("charset=utf-8").acceptJson().getAsJsonMap(); 2) Solution two: ConnectionRequest request = new ConnectionRequest(); request.setPost(false); request.setUrl(url); request.addRequestHeader("contentType", "application/json; charset=utf-8"); request.setReadRequest(true); NetworkManager.getInstance().addToQueueAndWait(request); Both solutions couldn't encode Chinese into UTF-8 format by using solution one and two, even I put the charset=utf-8. -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/55545839-12e3-444e-84d9-0f3a5a9214fc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.