matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Set email charset as utf-8 rather than utf8 #16329

Closed jjatria closed 1 year ago

jjatria commented 1 year ago

As stated by the W3C, the charset parameter can be set to "any character encoding that has been registered with IANA". A full list of these is available on their website.

Notably missing from that list is the utf8 value that was being used for email charsets. The strictly more correct name is utf-8 (or UTF-8, since these names are case-insensitive).

The popularity of UTF-8 has meant that aliases like utf8 are supported by a number of email servers. Unfortunately, not all are as accommodating (see for example https://github.com/emersion/hydroxide/issues/165), so a more standard name means Synapse can be used even with the more opinionated servers.

Pull Request Checklist

clokep commented 1 year ago

This is correct. 👍 Thank you!