title: Php message form charset not works
body: <p>Here is my code, i tried to set char coding to utf-8 but it isnt work.
  In the éáőí characters looks like ĂŠ.
  In html the charset is utf-8 and works, i think the php is the wrong.
  Thanks for help!</p>
  
  <p>PHP</p>
  
  <pre><code>&lt;?php
  $headers = 'Content-type: text/html; charset=utf-8' . "\r\n";
      $name = $_POST['name'];
      $email = $_POST['email'];
      $message = $_POST['message'];
      $from = 'From: YourWebsite.com'; 
      $to = 'anything@website.com'; 
      $subject = 'Email Inquiry';
  
      $body = "From: $name\n E-Mail: $email\n Message:\n $message";
  ?&gt;
  
  &lt;?php
  
  if ($_POST['submit']) {
      if (mail ($to, $subject, $body, $from, $headers)) { 
          echo '&lt;p&gt;Thank you for your email!&lt;/p&gt;';
      } else { 
          echo '&lt;p&gt;Oops! An error occurred. Try sending your message again.&lt;/p&gt;'; 
      }
  }
  
  ?&gt;
  </code></pre>