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

Make the email encoding of Zend_Email configurable #1366

Closed
loekvangool opened this issue Dec 30, 2020 · 1 comment · Fixed by #1438
Closed

Make the email encoding of Zend_Email configurable #1366

loekvangool opened this issue Dec 30, 2020 · 1 comment · Fixed by #1438

Comments

@loekvangool
Copy link
Contributor

Summary (*)

Make the email encoding configurable.

Examples (*)

I use the email infrastructure to send custom emails from PHP scripts. I need UTF-8 encoding, but Magento uses iso-8859-1 (the default of Zend_Email). Of course, one can fix things with utf8_decode() but it's better to just keep things in a single encoding. There does not seem to be a setting for this yet.

From the sent email:

Content-Type: text/plain; charset=iso-8859-1

It happens here: https://github.com/OpenMage/magento-lts/blob/1.9.4.x/app/code/core/Mage/Core/Model/Email.php#L135

Proposed solution

There could be a configuration setting for the encoding, and use iso-8859-1 as a fallback or default.

Also discussed in https://stackoverflow.com/questions/36570050/magento-email-model-encoding-unfortunately-defaults-to-iso-8859-1

@fballiano
Copy link
Contributor

I'm closing this one, since now we use zend_mail with utf8 charset

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

Successfully merging a pull request may close this issue.

3 participants