Special character in radio button is not sent by the form?

I have following code. It displays Registered Trade mark symbols correctly on webpage but does not send symbols in filled form by form mail. Please let me know where am I wrong and how to fix it. These symbols in other places are coming properly except this radio button.

<input type="radio" checked name="responcibility" value=" I will be solely responsible for false information I submit to xxx.Com&reg;&trade;." required>
                I will be solely responsible for false information I submit to xxx.Com&reg;&trade;.<br> 

Thanks in advance.
Best regards,
Arun

Try this…

 <form action="" accept-charset="utf-8">
   <label>Enter character encoding: -
   <input name="trademark" value="&reg; &trade;">
   </label>
   <input type="submit">
 </form>
2 Likes

xxx.Com®™. is coming by email.

By what process is the email sent?

1 Like

Formmailer


<form id="kontaktformular" class="kontaktformular" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="post" enctype="multipart/form-data">

<form id="kontaktformular" class="kontaktformular" action="<?php echo $_SERVER['SCRIPT_NAME'];?>" method="post" enctype="multipart/form-data">

Have you added…

 accept-charset="utf-8"

…to it yet?

1 Like

Yes, I did.

I hope this may help also here:

<?php
function sendMyMail($fromMail, $fromName, $toMail, $subject, $content, $attachments=array()){
	$boundary = md5(uniqid(time()));
	$eol = PHP_EOL;
	$header = "From: =?UTF-8?B?".base64_encode(stripslashes($fromName))."?= <".$fromMail.">".$eol;
	$header .= "Reply-To: <".$fromMail.">".$eol;
	$header .= "MIME-Version: 1.0".$eol;
	if(is_array($attachments) && 0<count($attachments)){
		$header .= "Content-Type: multipart/mixed; boundary=\"".$boundary."\"";
	}
	else{
		$header .= "Content-type: text/plain";
	}
	$subject = "=?UTF-8?B?".base64_encode($subject)."?=";
	return mail($toMail, $subject, $message, $header);
}

Sir, do I need to change something here?:

class PHPMailer
{
    const CHARSET_ASCII = 'us-ascii';
    const CHARSET_ISO88591 = 'iso-8859-1';
    const CHARSET_UTF8 = 'utf-8';

    const CONTENT_TYPE_PLAINTEXT = 'text/plain';
    const CONTENT_TYPE_TEXT_CALENDAR = 'text/calendar';
    const CONTENT_TYPE_TEXT_HTML = 'text/html';
    const CONTENT_TYPE_MULTIPART_ALTERNATIVE = 'multipart/alternative';
    const CONTENT_TYPE_MULTIPART_MIXED = 'multipart/mixed';
    const CONTENT_TYPE_MULTIPART_RELATED = 'multipart/related';

I do not know what your problem is?

In your original post you have an input type="radio"

The code that I posted would work for that also…

  <form action="" accept-charset="utf-8">
   <label>Check this radio: -
   <input type="radio" name="responsibility" value="&reg;&trade;" required>
   </label>
   <input type="submit">
 </form>

On form submission responsibility=®™ is sent.

What happens after form submission, though, is not an HTML problem.

Thank you so much for your kind help, but things are not working for me somehow.
Now, once again, this is form (I have shortened it):

		<form id="kontaktformular" class="kontaktformular" action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="post" accept-charset="utf-8" enctype="multipart/form-data">
              <p><FONT size="2" face="Verdana, Arial, Helvetica, sans-serif"> 
                <label><input type="radio" checked name="responcibility" value=" I will be solely responsible for false information I submit to 5StarAstrology.Com&reg;&trade;." required></label>
<div class="row" id="send">
				<div class="col-sm-8">
					<button type="submit" class="senden" name="en-us-kf-km" style="border: 0; background-color: transparent;" value="Send"/><img src="img/submit.gif" alt="SomeAlternateText"></button>

               </div> 
            </div>		</form>

And this is received by email (color is added here, it is in plain text with black color in email):

* I will be solely responsible for false information I submit to 5StarAstrology.Com®™.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.