| Bug #17267 | Bad email encoding when using cp1251 encoding | ||
|---|---|---|---|
| Submitted: | 9 Feb 2006 8:46 | Modified: | 20 Aug 2006 8:03 |
| Reporter: | Dmitry Kopytine | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | Eventum | Severity: | S3 (Non-critical) |
| Version: | 1.7.0 | OS: | Windows (Windows 2003 Server) |
| Assigned to: | CPU Architecture: | Any | |
[20 Aug 2006 8:03]
Bryan Alsdorf
Thanks, this will be in our next release

Description: I'm russian and so I'm using `cp1251` encoding in DB and `windows-1251` in config: @define("APP_CHARSET", "windows-1251"); When eventum sends emails, email encoding is incorrect (ISO-xxxx-x), so I can't read russian text. How to repeat: Try to use cp1251 (windows-1251) encoding in the site and try to send emails with eventum. Suggested fix: I fixed this bug so: I found a string $body = $this->mime->get(); in the file class.mail.php. Important: this string occurs twice in this file! Than I replaced these 2 strings with $body = $this->mime->get(array("html_charset" => APP_CHARSET, "text_charset" => APP_CHARSET, "head_charset" => APP_CHARSET)); This works properly.