title: In PowerShell Encode text for Email to display Unicode characters properly
body: <p>I have this string:</p>
  
  <pre><code>You owe me a total of ₦7,500.00
  </code></pre>
  
  <p>Now I need to include the text in the body of an email. How can I encode this in UTF8 to have the currency symbol display properly in the user agent?</p>
  
  <pre><code>'''
  $message = New-Object System.Net.Mail.MailMessage($From, $To)
  $message.Subject = $messageSubject
  $message.IsBodyHTML = $true
  $message.Body = $contentText
  $message.BodyEncoding = [System.Text.Encoding]::UTF8
  '''
  </code></pre>
  
  <p>For whatever reason, this does not seem to work. What I get is still this:</p>
  
  <pre><code>You owe me a total of â‚¦7,500.00
  </code></pre>
  
  <p>When I use <code>Get-Content</code> to draw the text from a file like so:</p>
  
  <pre><code>$message.Body = (gc C:/temp/email.txt -Encoding UTF8)
  </code></pre>
  
  <p>It works, as the email displays correctly. However, I need to be able to do the encoding with the string, since the source of my email body is not a file.</p>