Home Powershell Activity

Email Notifications are showing ? in place of £ / double space

Carol_MorrellCarol_Morrell Customer IT Monkey ✭

Our Email Notifications use a Cireson Powershell script and we have noticed that if a User adds a comment into a call with a £ or a double space, then these come out as a ? in the email notification which goes out.  For testing I entered the following comment to a call - 'Adding a comment to test - here's a double space  and here's a pound sign £.'  This is sent out in the email notification to the User as 'Adding a comment to test  - here's a double space? and here's a pound sign ?.' 

Has anyone ever come across this and does anyone know what we need to add into the powershell script to correct for this?

Best Answer

  • Geoff_RossGeoff_Ross Cireson Consultant O.G.
    Answer ✓
    Hi Carol,

    This could be the encoding. In the PowerShell script, in the line that sends the email (Send-MailMessage) add 
    Encoding UTF-8

    See if that helps?

    Geoff

Answers

  • Geoff_RossGeoff_Ross Cireson Consultant O.G.
    Answer ✓
    Hi Carol,

    This could be the encoding. In the PowerShell script, in the line that sends the email (Send-MailMessage) add 
    Encoding UTF-8

    See if that helps?

    Geoff
  • Carol_MorrellCarol_Morrell Customer IT Monkey ✭
    Thank you Geoff, yes that has sorted it all out.  Many thanks.
Sign In or Register to comment.