android - send emoticons to my webservice -


i trying send emoticons webservice following error:

java.lang.illegalargumentexception: illegal character (d83d) @ org.kxml2.io.kxmlserializer.reportinvalidcharacter(kxmlserializer.java:144) @ org.kxml2.io.kxmlserializer.writeescaped(kxmlserializer.java:130) @ org.kxml2.io.kxmlserializer.text(kxmlserializer.java:536) @ org.ksoap2.serialization.dm.writeinstance(dm.java:68) @ org.ksoap2.serialization.soapserializationenvelope.writeelement(soapserializationenvelope.java:656) @ org.ksoap2.serialization.soapserializationenvelope.writeproperty(soapserializationenvelope.java:649) @ org.ksoap2.serialization.soapserializationenvelope.writeobjectbody(soapserializationenvelope.java:595) @ org.ksoap2.serialization.soapserializationenvelope.writeobjectbody(soapserializationenvelope.java:573) @ org.ksoap2.serialization.soapserializationenvelope.writeelement(soapserializationenvelope.java:658) @ org.ksoap2.serialization.soapserializationenvelope.writebody(soapserializationenvelope.java:555) @ org.ksoap2.soapenvelope.write(soapenvelope.java:205) @ org.ksoap2.transport.transport.createrequestdata(transport.java:134) @ org.ksoap2.transport.httptransportse.call(httptransportse.java:149) @ org.ksoap2.transport.httptransportse.call(httptransportse.java:118) @ org.ksoap2.transport.httptransportse.call(httptransportse.java:113) @ corcanoe.gps.tracker.myclass.myfunction(myclass.java:708)

this code use myclass.myfunction():

soapobject request = new soapobject(namespace, method_name);     request.addproperty("mytext", mytext); //mytext has emoticons soapserializationenvelope envelope = new soapserializationenvelope(soap_version); envelope.dotnet = true; envelope.setoutputsoapobject(request); httptransportse androidhttptransport = new httptransportse(url);  androidhttptransport.call(soap_action, envelope); //i error here object result = envelope.getresponse(); string resultdata = result.tostring(); return resultdata; 

it works few simple emoticons ☺ doesn't work newer ones crying or laughing. so, question is, how can serialize properly?


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -