I am building the following form where all the irrelevant code has been removed:
<form enctype="multipart/form-data; accept-charset=iso-8859-1,UTF-16" name="myform" method="post" action="mailto:someone@somewhere.com?subject=The email subject">
<input type="hidden" name="var_name" value="'";>
<input type="text" name="name_01" . . .
<input type="text" name="name_02" . . .
<input type="text" name="name_03" . . .
. . . . . . . . . . . . . . . . . . . .
<input type="hidden" name="end" value="'">
</form>
For the example we only introduce some data (12345) on the name_02 field.
I have also added a space before and after each ampersand in the following lines for human legibility of this message.
This form produces an attached file which can be saved locally when received with the email client software. The attachment reads as follows:
var_name=%27 & name_01= & name_02=12345 & name_03= & end=%27
And I want it to produce instead the following line where an apostrophe (single quotation mark) is in place of %27.
var_name=' & name_01= & name_02=12345 & name_03= & end='
I have tried several "enctypes" and "accept-charset" on the form header without success.
In other words: I am unable to send quotation marks and I only send %27 (or %22 for the double quotes).
- - -
Remark: The change from quotation marks to %27 is done at the earliest stage by the email client in the sender's computer, not later in the mail server.
- - -
For those concerned with what follows I'll say that the variable var-name will be taken into a JavaScript where I shall be able to extract each value and to do with it whatever I want.
Thanks in advance