Try to decode your string
just use Uri.encode (String) .
subject = (EditText) findViewById(R.id.subject); subject.setText(Uri.encode(WhatEverYourStringVarIs));
This will help you decode URIencode.
If you mean a problem with PHP (HTML), just do the same:
$encodeString = urlencode($encodeString); echo $encodedString;
So, the line will be displayed correctly. See url encode .
Ok, but when I read your question for the third time: you can use spaces in this case HTML. This is an Android bug. Just use this:
<a href="mailto: someone@example.com ?subject=This is the subject& cc=someone_else@example.com ">Send Mail</a>
source share