Answers.Body: <p>Completely untested, but try setting this in your public <code>index.php</code> file right before Craft executes:</p>
  
  <pre><code>\Swift_Preferences::getInstance()-&gt;setCharset('UTF-8');
  </code></pre>
  
  <p>Based on <a href="https://swiftmailer.symfony.com/docs/messages.html#setting-the-character-set" rel="nofollow noreferrer">https://swiftmailer.symfony.com/docs/messages.html#setting-the-character-set</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-04T18:17:47.870Z
Answers.Text: Is the \ a typo? Looking at the Swift Mailer docs it doesn't seem to be included
Answers.UserDisplayName: Lily K
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-04T18:26:21.093Z
Answers.Text: Unfortunately, this didn't work. Thank you for the Swift Mailer references though.
Answers.UserDisplayName: Lily K
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-05-31T23:20:24.567Z
Answers.LastActivityDate: 2019-05-31T23:20:24.567Z
Answers.UserDisplayName: Brad Bell
Body: <p>I have a Craft 3 site that used Freeform Pro for a contact form. All submissions from this form need to be sent, via email to a third party vendor who parses the information and submits it to a CRM. The format for the emails they receive is very specific: plain-text, utf-8 character set.</p>
  
  <p>When I send a test email from the contact form, it appears to default to ascii if there isn't a utf-8 character in the message. Is there a way to have SwiftMailer to send all emails as UTF-8? </p>
  
Tags: <emails><plugin-freeform>
Title: Need Swift Mailer to send emails as UTF-8
ThreadText: # Need Swift Mailer to send emails as UTF-8
  
  (Asked by: username_0 on 2019-05-31)
  
  I have a Craft 3 site that used Freeform Pro for a contact form. All submissions from this form need to be sent, via email to a third party vendor who parses the information and submits it to a CRM. The format for the emails they receive is very specific: plain-text, utf-8 character set.
  
  When I send a test email from the contact form, it appears to default to ascii if there isn't a utf-8 character in the message. Is there a way to have SwiftMailer to send all emails as UTF-8?
  
  **Tags:** emails, plugin-freeform
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-05-31. Score: 0
  
  Completely untested, but try setting this in your public `index.php` file right before Craft executes:
  
  ```
  \Swift_Preferences::getInstance()->setCharset('UTF-8');
  
  ```
  
  Based on <https://swiftmailer.symfony.com/docs/messages.html#setting-the-character-set>
  
  > **Comments:**
  > **username_0**: Is the \ a typo? Looking at the Swift Mailer docs it doesn't seem to be included  
  > **username_0**: Unfortunately, this didn't work. Thank you for the Swift Mailer references though.  
  
  ---
  
  