title: Email Subject showing Encoding
body: <p>I am using send-mail message to send email to our Support System. 
  But when it send email it shows the subject line like this screen!</p>
  
  <blockquote>
    <p>=?us-ascii?Q?R899076:Aman:System Summary ?=</p>
  </blockquote>
  
  <p>In Subject I am using the variable: </p>
  
  <pre><code>$vUserName = (Get-Item env:\username).Value
  $vComputerName = (Get-Item env:\Computername).Value
  $subject = "$vComputerName : $vUserName : System Summary"
  </code></pre>
  
  <p>and then</p>
  
  <pre><code>send-MailMessage  -SmtpServer Smtp-local -To $to -From $from -Subject $subject -Body $body  -BodyAsHtml -Priority High 
  </code></pre>
  
  <p>But when I recieve this email in Outlook it looks fine any Idea?</p>
  
  <hr>
  
  <p>Actually this a approx 150 lines script and the body of email and smtp server are already specified in the server. 
  yes I tried the <code>$subject = "$env:ComputerName : $env:UserName : System Summary"</code> variable and the result is same. </p>
  
  <p>yes I have tried the - encoding option and it gives an error</p>
  
  <blockquote>
    <p>Send-MailMessage : Cannot bind parameter 'Encoding'. Cannot convert the "utf8" value of type "Syste
    m.String" to type "System.Text.Encoding".
    At D:\PowerShell\MyScripts\SystemInfo\SysInfo-V6-test[notfinal].ps1:151 char:84
    + send-MailMessage  -SmtpServer $smtp -To $to -From $from -Subject $subject -Encoding &lt;&lt;&lt;&lt;  utf8 -B
    ody $body -Attachments "$filepath\$name.html" -BodyAsHtml -Priority High 
        + CategoryInfo          : InvalidArgument: (:) [Send-MailMessage], ParameterBindingException
        + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.PowerShell.Commands.SendMai 
       lMessage</p>
  </blockquote>
  
  <p>Any clue?</p>