I am trying to send input to PHP from an edittext. If I send something with an empty space then it works fine, but crashes with empty space and it says:
invalid character
... that space.
Obviously this quote is a case of right, but for some reason I can not get this right.
Where do I add quotes?
What is the URL in Java when creating?
http: //example.com/android/project_group_notes_details.php? Course = \ "+ sessionCourse +" \ ""
or when creating variables?
string session = "\ 'software development with spaces \ '';
Or is it anyway server side?
A standard browser enters any empty space with the address bar and changes it with % 20
; space
character of HTML.
The HTTP does not do this, the browser does, which means that you have two options I:
- Create a function to replace all the locations with the string and
% 20
- Manually
For example:
string session cost = "\ 'software development with spaces \" "
should really be
string session cost =" \ 'software% 20 development% 20 with 20% s \' ";
No comments:
Post a Comment