Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple encodings #2

Open
hugorodgerbrown opened this issue May 14, 2014 · 0 comments
Open

Support multiple encodings #2

hugorodgerbrown opened this issue May 14, 2014 · 0 comments

Comments

@hugorodgerbrown
Copy link
Contributor

Emails can have different encodings set on different fields, and these may well be different from the encoding used for the HTTP request - e.g. and email sent from Outlook running on Windows may have the 'to' and 'subject' fields encoded in 'windows-1252', which is then forwarded on via the backend provider in an HTTP request encoding with UTF-8. Different backends will deal with this in their own way, but as an example, SendGrid sends a 'charsets' value in the request, which is a JSON-formatted string that contains the specific encoding for each field. This can then be used by the backend to decode the values sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant