Android - php string encoding
<p>i am doing a project in android. i am a begineer in android also. in my android application i am using php as my webservice provider. in my php code for the authentication i am check the user vaidity and return string 1 or 0. In android application i am get the string. but when i check it in a if condition it fails. is it due to any charset compatablity issue.</p>

<p><strong>in php code</strong> </p>

<pre><code>.....
if($auth) {
 echo '1';
}
else {
 echo '0';
}
</code></pre>

<p><strong>in android</strong></p>

<pre><code>//get the code and saved in to string loginStatus;
if(loginStatus == "1") {
 //not getting into this part if the loginStatus is 1;
}
else {
 //getting into this part
}
</code></pre>
