| Anonymous | Login | Signup for a new account | 21-11-09 08:50 GMT |
| Main | My View | View Issues | Change Log | Roadmap | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Print ] | ||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||
| 0015250 | [phplist] RSS | minor | have not tried | 25-03-09 03:49 | 26-05-09 12:39 | ||
| Reporter | h2b2 | View Status | public | ||||
| Assigned To | |||||||
| Priority | normal | Resolution | duplicate | ||||
| Status | resolved | Product Version | 2.10.9 | ||||
| Summary | 0015250: RSS feeds encoded in ISO-8859-1 do not display correctly in UTF-8 encoded messages | ||||||
| Description |
A number of users mentioned that special characters contained in ISO-8859-1 encoded RSS feeds do not display correctly in the UTF-8 encoded messages phpList generates. Reference: http://forums.phplist.com/viewtopic.php?p=60601#60601 [^] http://forums.phplist.com/viewtopic.php?p=47283#47283 [^] |
||||||
| Additional Information | Possibly related to http://mantis.phplist.com/view.php?id=1644 [^] | ||||||
| Tags | No tags attached. | ||||||
| Attached Files | |||||||
|
|
|||||||
Relationships |
||||||
|
||||||
Notes |
|
|
(0050605) h2b2 (reporter) 26-03-09 23:34 |
Additional info provided by bede: The issue only occurs for RSS feeds. The html and text mails display special characters correctly. This is the server and configuration info to reproduce the issue: phpList version: 2.10.5 Configuration page - Charset for HTML messages: iso-8859-1 - Charset for Text messages: iso-8859-1 config.php - $language_module = danish.inc - define("HTMLEMAIL_ENCODING","quoted-printable"); - define("TEXTEMAIL_ENCODING",'7bit'); Language file encoding iso-8859-1 Database encoding settings: character_set_client: utf8 character_set_connection: utf8 character_set_database: latin1 character_set_filesystem: binary character_set_results: utf8 character_set_server: latin1 character_set_system: utf8 character_sets_dir /usr/share/mysql/charsets/ HTTP_ACCEPT_LANGUAGE da Server info Platform: Linux adux07 2.6.18-6-686 #1 SMP Mon Oct 13 16: 13: 09 UTC 2008 i686 PHP version: 5.2.1 MySQL version: 4.1.15 |
|
(0050606) h2b2 (reporter) 26-03-09 23:44 |
- This is the fix suggested by bede for v2.10.5: ====== Start quote ====== Replace this function getNextItem($max=false) in onyx-rss.php with the following code, that did for me. For the record, my html and text mail are correct in charset, only the Rss feed had the charset problem. Best of luck.... Code: function getNextItem($max=false) { $type = $this->conf['fetch_mode']; $this->rss['output_index']++; if (($max && $this->rss['output_index'] > $max) || !isset($this->data['items'][$this->rss['output_index']])) return false; //CONVERT DATA FROM UTF-8 TO ISO-8859-1 $i = $this->rss['output_index']; $item = $this->data['items']; $this->data['items'][$i]['title'] = iconv ( 'UTF-8', 'ISO-8859-1', $this->data['items'][$i]['title'] ); $this->data['items'][$i]['description'] = iconv ( 'UTF-8', 'ISO-8859-1', $this->data['items'][$i]['description'] ); return ($type == ONYX_FETCH_ASSOC) ? $this->data['items'][$this->rss['output_index']] : (($type == ONYX_FETCH_OBJECT) ? (object)$this->data['items'][$this->rss['output_index']] : false); } ======= End quote ======= Source: http://forums.phplist.com/viewtopic.php?p=61072#61072 [^] This is fix is confirmed to work on another system. Unfortunately that user failed to specify his phplist version and configuration info. Anyway, bede's info should help to reproduce the issue. - |
| Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |