Passing date with backslashes in a URL: Android
<p>Just a simple quick question. I want to pass a date in my HTTP request. The date format is like this <code>22\July\2012</code>. Here's the URL which I am trying to pass. Where <code>dateChat =22\July\2012</code></p>

<pre><code>if(this.dateChat!="") {
  this.dateChat.replace("\\", "\\\\");
}
httpclient= new DefaultHttpClient();
httpget = new HttpGet("http://10.116.27.107/php/Chat/xmlManipulator.php?" +
  "action="+this.action+"&amp;username="+this.userName+
  "&amp;chatText="+this.chatText+"&amp;email="+this.email+
  "&amp;callfrom="+this.callFrom+"&amp;dateChatToRetrieve="+this.dateChat);
</code></pre>

<p>The logcat is giving the following error:</p>

<pre><code> 07-15 20:26:40.165: E/AndroidRuntime(2000): FATAL EXCEPTION: main
 07-15 20:26:40.165: E/AndroidRuntime(2000): java.lang.IllegalArgumentException:
  Illegal character in query at index 146:
  http://10.116.27.107/php/Chat/xmlManipulator.php?action=ReturnUserAdminChats&amp;username=You&amp;chatText=a&amp;email=You&amp;callfrom=admin&amp;dateChatToRetrieve=5\July\2012
</code></pre>
