lgkahn / hubitat

hubitat device types and smartapps
14 stars 14 forks source link

Encoding fails in email #3

Open mast76 opened 3 years ago

mast76 commented 3 years ago

The page encoding on the Hubitat seems to be UTF-8. When you send an email with "LGK Sendmail V2" with non us-ascii letters e.g. "æ ø å". They are not shown correctly in the generated email. I suggest you change line 436 from , 'Content-Type: text/plain; charset="us-ascii"' to , 'Content-Type: text/plain; charset="utf-8"' alternative change the charset to a configurable value.

Thanks, for a good extension, nice work. :)

lgkahn commented 3 years ago

thanks good suggestion, change made..

---- Original Message ---- From: "mast76" notifications@github.com Sent: 2/24/2021 4:44:08 PM To: "lgkahn/hubitat" hubitat@noreply.github.com Cc: "Subscribed" subscribed@noreply.github.com Subject: [lgkahn/hubitat] Encoding fails in email (#3)

The page encoding on the Hubitat seems to be UTF-8. When you send an email with "LGK Sendmail V2" with non us-ascii letters e.g. "æ ø å". They are not shown correctly in the generated email. I suggest you change line 436 from , 'Content-Type: text/plain; charset="us-ascii"' to , 'Content-Type: text/plain; charset="utf-8"' alternative change the charset to a configurable value. Thanks, for a good extension, nice work. :) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.