[Tickets #2988] unable to compose email messages in character sets other than utf-8 or iso-8859-*

bugs@bugs.horde.org bugs at bugs.horde.org
Sat Nov 19 10:44:39 PST 2005


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

Ticket URL: http://bugs.horde.org/ticket/?id=2988
-----------------------------------------------------------------------
 Ticket             | 2988
 Updated By         | leena.heino at uta.fi
 Summary            | unable to compose email messages in character sets other than utf-8 or iso-8859-*
 Queue              | IMP
 Version            | FRAMEWORK_3
 State              | Feedback
 Priority           | 1. Low
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


leena.heino at uta.fi (2005-11-19 10:44) wrote:

> Huh?

if I compose message and choose eg. koi8-r charset from menu in the compose
window and the interface is set to iso-8859-1 (NLS::getCharset) then Imp
tries to convert the iso-8859-1 to koi8-r.  String::convertCharset is used
in imp/compose.php to do the charset conversion. String::convertCharset uses
iconv() or mb_convert_encoding(). Iconv() and mb_convert_encoding() mess up
the conversion of from iso-8859-1to koi8-r.

iconv() and mb_convert_encoding() tries to convert input string so that
resulting string have only those characters that are found in both character
sets. This means that if 8-bit character sets are incompatible then most or
all 8-bit characters are lost in conversion.





More information about the bugs mailing list