[Tickets #9503] Re: Double UTF7-IMAP encoding for system folders

bugs at horde.org bugs at horde.org
Wed Jan 19 10:57:02 UTC 2011


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

Ticket URL: http://bugs.horde.org/ticket/9503
------------------------------------------------------------------------------
  Ticket             | 9503
  Updated By         | Gunnar Wrobel <wrobel at pardus.de>
  Summary            | Double UTF7-IMAP encoding for system folders
  Queue              | IMP
  Version            | 4.3.9
  Type               | Bug
-State              | Resolved
+State              | Assigned
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             | Horde Developers, Jan Schneider
------------------------------------------------------------------------------


Gunnar Wrobel <wrobel at pardus.de> (2011-01-19 05:57) wrote:

I applied the patch from CVS to imp-4.3.9 but it does not successfully  
solve the problem.

The String "Entwürfe" is now correctly returned from the translation.

The call

String::convertCharset(_("Drafts"), null, 'UTF7-IMAP')

in imp/config/prefs.php however converts that to "Entw&AMMAvA-rfe".

An explicit

String::convertCharset(_("Drafts"), 'UTF8', 'UTF7-IMAP')

results in the correct value "Entw&APw-rfe".

The origin of that problem seems to be that the $from = null setting  
for String::convertCharset leads to mb_convert_encoding() assuming the  
origin charset to be equivalent to mb_internal_encoding(). This is  
"ISO-8859-1" however while the original "Entwürfe" string was provided  
in "UTF8".

Now I wonder if that is a local problem of the Kolab installation or  
whether this needs fixing in the Horde code. Thanks!








More information about the bugs mailing list