Hi, My server is local tomcat server.. I am hoping this chars are some thing to do with UTF-8 etc.. however when I create string from the byte array with char encoding as utf8 then also these chars exist.
I am using the same server logic and code with webservices and j2me client, which seem to have no special prefixes.. However in j2me we are using plain sockets approach, where as in andorid we are using the apache http client api.. Regards, Nagendra On Mar 23, 9:14 am, "Dan U." <[EMAIL PROTECTED]> wrote: > Have you tried getting your content from a different server? I ask > because I noticed similar problems when I uploaded my apps to a free > hosting provider and found out they added things to my xml (I guess > for google analytics or something). > > On Mar 22, 9:02 pm, Raja Nagendra Kumar <[EMAIL PROTECTED]> > wrote: > > > > > Hi, > > > We are using method.getResponseBodyAsString() of HttpClient api. > > However for every server responce, we see some special chars like the > > one below. > > > ÀEURO|<?xml version="1.0" encoding="UTF-8" standalone="yes"?> > > > Not sure what these special chars are. As work around we are now > > taking the substring starting with <?xml, however is there a straight > > approach so that getResponseBodyAsString() gives me the string with > > out these special chars.. > > > Tried also getting the bytearray and converting it into string with > > encoding as UTF-8, still the issue remains. > > > Regards, > > Raja Nagendra Kumar, > > C.T.Owww.tejasoft.com- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

