title: How to send an email with its text/html encoded in UTF-8 using SendGrid for C#?
body: <p>I'm trying to send emails that contains special characters like á, é, ó, í, ú, etc. My code looks like this:</p>
  
  <pre><code>try
  {
     Mail message = Mail.GetInstance();
     foreach (Users u in users)
     {
         message.AddBcc(u.Email);
     }
     message.From = new MailAddress(Microsoft.WindowsAzure.CloudConfigurationManager
         .GetSetting("emailFrom"), Microsoft.WindowsAzure.CloudConfigurationManager
         .GetSetting("emailFromName"));
     message.Subject = Microsoft.WindowsAzure.CloudConfigurationManager
         .GetSetting("emailSubject");
  
     message.Html = "&lt;meta charset=\"UTF-8\"/&gt;" + 
         Microsoft.WindowsAzure.CloudConfigurationManager.GetSetting("emailText1") + 
         " " + address+ ".&lt;br/&gt;" + 
         Microsoft.WindowsAzure.CloudConfigurationManager.GetSetting("emailText2");
  
     var transport = SMTP.GetInstance(new NetworkCredential(
         Microsoft.WindowsAzure.CloudConfigurationManager.GetSetting("emailLogin"), 
         Microsoft.WindowsAzure.CloudConfigurationManager.GetSetting("emailPass")));
     transport.Deliver(message);
     isEmailSent = true;
  }
  catch (Exception ex)
  {
      Debug.WriteLine(ex.Message + " \n " + ex.InnerException + " \n " + ex.StackTrace);
      isEmailSent = false;
  }
  </code></pre>
  
  <p>I tried to specify the charset in the Html I'm sending but it doesn't work, instead of sending this <code>San Jerónimo Amanal</code>, this is what is being sent <code>San JerÃ³nimo Amanal</code>.</p>
  
  <p>How can I send it in the correct encoding? Any help will be appreciated.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I tried this two approches:</p>
  
  <pre><code>   message.Html = "&lt;meta charset=\"UTF-8\"/&gt;" + 
         Microsoft.WindowsAzure.CloudConfigurationManager.GetSetting("emailText1") + 
         " " + address+ ".&lt;br/&gt;" + 
         Microsoft.WindowsAzure.CloudConfigurationManager.GetSetting("emailText2");
  </code></pre>
  
  <p>And this:</p>
  
  <pre><code>   message.Html = Microsoft.WindowsAzure.CloudConfigurationManager.GetSetting
         ("emailText1") + " " + address+ ".&lt;br/&gt;" + 
         Microsoft.WindowsAzure.CloudConfigurationManager.GetSetting("emailText2");
  </code></pre>
  
  <p>But the email is still being sent with the wrong encoding.</p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>I tried the answer on this question <a href="https://stackoverflow.com/questions/1615559/converting-unicode-strings-to-escaped-ascii-string">Converting Unicode strings to escaped ascii string</a>, more especifically, I tried the method <code>EncodeNonAsciiCharacters</code> but I got this in the email <code>San Jer\u00c3\u00b3nimo Amanal</code>. Did I take the wrong approach in this one?</p>