Wednesday, March 26, 2014

Android http call aspx, back the received data is garbled?


android to invoke ASP.NET post written http, aspx page, nothing backstage operations directly outputs the received content,

To request manner, the received content output: �� ur [B �� T xp,
??????
There are questions in front of a red mark is garbled? Or what character encoding?

Another: the current situation is not all the requested data returns this result, and some results are normal, there is no occurrence of the above random characters.

android version 2.3
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
This should be aspx error message.
Reply:
That is the problem with the POST method.
Reply:
reference to the second floor of the reply:
That POST method problem.

Not all have problems, there is a small part of the data in question
Reply:
What encoding server, you use the browser to submit the next look, post, then you try to write a script ajax, may be unrelated to the problem and android
Reply:
Gradually excluded
1 Look at your output http client is not a panacea utf-8

Reply:
references, 4th Floor reply:
server what encoding your browser is filed under look, post, then you try to write a script ajax, possible problems and android unrelated

It is mostly normal

Some post data bit unusual, may be garbled
Reply:
That should be the encoding problem.
Reply:
Is a coding problem, but how to solve it

No comments:

Post a Comment