title: PHP Mailer languages encoding issues: It accepts only English
body: <p>I am using php mailer at my website contact form. When i receive a message in greek language, i don't receive the text as typed in the contact form. In class.phpmailer.php file line 59 the encoding is   <code>public $CharSet  = 'iso-8859-1';</code> Is there a way to make my text appear correctly as typed in the contact form? </p>
  
  <blockquote>
    <p>Languages comonly supported by ISO/IEC 8859-1 can be found <a href="https://en.wikipedia.org/wiki/ISO/IEC_8859-1#Modern_languages_with_complete_coverage" rel="nofollow noreferrer">here</a></p>
  </blockquote>
  
  <p><strong>I have also tried german and albanian languages but i also have the same problem. I can only receive english, if the user types another language on some words i receive "chinese".</strong></p>
  
  <p><a href="https://i.stack.imgur.com/bYgnz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bYgnz.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>I get this message:
    <a href="https://i.stack.imgur.com/gKjrw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gKjrw.png" alt="enter image description here"></a></p>
  </blockquote>
  
  <p><b>The code: </b></p>
  
  <pre><code>     &lt;?php
          require_once('phpmailer/class.phpmailer.php');
  
          // if(isset($_POST['g-recaptcha-response'])){
          if (empty($_POST['Email'])) {
              $_POST['Email'] = "-";
          }
          if (empty($_POST['Name'])) {
              $_POST['Name'] = "-";
          }
          if (empty($_POST['Subject'])) {
              $_POST['Subject'] = " ";
          }
          if (empty($_POST['message'])) {
              $_POST['message'] = "-";
          }
  
  
  
  
          $mymail = smtpmailer("example@gmail.com", $_POST['Email'], $_POST['Name'],
   $_POST['Subject'], $_POST['message']);
          function smtpmailer($to, $from, $from_name, $subject, $body)
          {
              $mail = new PHPMailer;
              $mail-&gt;isSMTP();
              $mail-&gt;Debugoutput = 'html';
              $mail-&gt;Host        = 'smtp.gmail.com';
              $mail-&gt;Port        = 587;
              $mail-&gt;SMTPSecure  = 'tls';
              $mail-&gt;SMTPAuth    = true;
              $mail-&gt;Username    = 'example@gmail.com';
              $mail-&gt;Password    = 'pass';
              $mail-&gt;SetFrom($from, $from_name);
              $mail-&gt;Subject  = " Contact form ~Name: $from_name ~ subject: $subject  ";
           $mail-&gt;Body = " You have received a new message 
            from $from_name, here are the details:\n\n_____
            ___________________\n" . "\nDear $from_name,\n
        Your enquiry had been received on " . date("D j F ") . "
         \nINFORMATION SUBMITTED: " . "\n\nName: $from_name\n\nEmail: $from
          \nSubject: $subject\n\nMessage: $body \n\nTo:
           $to\nDate: " . date("d/m/y") . "\nWebsite: " . "\n____________
          __________________"; //end body
  
  
          $mail-&gt;AddAddress($to);
          //send the message, check for errors
          if (!$mail-&gt;send()) {
            echo "Mailer Error: " . $mail-&gt;ErrorInfo;
  
           } else {
         echo "Well done $from_name, your message has been sent!\n
      We will reply to the following email: $from" . "\nYour Message: $body";
              }
  
  
  
  
          } //end function smtpmailer
          //}
  
  
          ?&gt;
  </code></pre>