[Tickets #2702] Preference for default encoding

bugs@bugs.horde.org bugs at bugs.horde.org
Fri Mar 24 01:34:45 PST 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=2702
-----------------------------------------------------------------------
 Ticket             | 2702
 Updated By         | Jan Schneider <jan at horde.org>
 Summary            | Preference for default encoding
 Queue              | IMP
 Version            | HEAD
 State              | Feedback
 Priority           | 2. Medium
 Type               | Enhancement
 Owners             | Michael Slusarz
-----------------------------------------------------------------------


Jan Schneider <jan at horde.org> (2006-03-24 01:34) wrote:

>> You also need to use the default charset for the email headers.
>
> So we have to run every header line through String::convertCharset()? 
>  In that case, we really need to change the preference defaults back 
> to 'US-ASCII' rather than this code:
>     'value' => isset($GLOBALS['nls']['emails'][$GLOBALS['language']])
>         ? $GLOBALS['nls']['emails'][$GLOBALS['language']]
>         : (isset($GLOBALS['nls']['charsets'][$GLOBALS['language']])
>             ? $GLOBALS['nls']['charsets'][$GLOBALS['language']]
>             : 'ISO-8859-1'),
> Because those convertCharset calls are going to add up in a hurry.

But they will do anyway if you use that feature, right? I can't really test
it unfortunately, because Cyrus doesn't allow unencoded 8bit characters in
headers anyway.




More information about the bugs mailing list