<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Preference for default encoding</title> 
  <pubDate>Fri, 10 Apr 2026 01:05:01 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/2702</link> 
  <atom:link rel="self" type="application/rss+xml" title="Preference for default encoding" href="https://bugs.horde.org/ticket/2702/rss" /> 
  <description>Preference for default encoding</description> 
 
   
   
  <item> 
   <title>I have a problem with the encoding in IMP when I? m reading </title> 
   <description>I have a problem with the encoding in IMP when I? m reading Greek in a message from hotmail or Outlook. Both don?t include encoding information in the subject, while hotmail doesn?t as well include encoding headers information, which is responsible for the body of the message. 

Is there a way to include a drop-down menu in the message window with encoding options or the encoding in the above-mentioned cases to be selected automatically according to the chosen by the user language (e.g. ISO-8859-7 for Greek)?

We are willing to contribute with code if necessary in order to provide this feature.

</description> 
   <pubDate>Thu, 29 Sep 2005 08:30:24 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2702#t11981</link> 
  </item> 
   
  <item> 
   <title>I probably don&#039;t have to tell you that hotmail is sending co</title> 
   <description>I probably don&#039;t have to tell you that hotmail is sending completely broken messages.



But this happens with so many mailers that it makes sense to define a default encoding for messages that don&#039;t define a proper charset. This has been requested several times, as such a feature exists in other mail clients too. I plan to implement this for a while already, but didn&#039;t get to it yet.



A patch would be great. But this shouldn&#039;t be a selection in the message view, but a preference for all messages.</description> 
   <pubDate>Thu, 29 Sep 2005 08:41:54 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2702#t11985</link> 
  </item> 
   
  <item> 
   <title>First crack at this is now in HEAD and 4.1.1.  It requires a</title> 
   <description>First crack at this is now in HEAD and 4.1.1.  It requires at least Horde 3.1.1.</description> 
   <pubDate>Tue, 21 Mar 2006 08:00:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2702#t17989</link> 
  </item> 
   
  <item> 
   <title>You also need to use the default charset for the email heade</title> 
   <description>You also need to use the default charset for the email headers.</description> 
   <pubDate>Thu, 23 Mar 2006 17:22:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2702#t18060</link> 
  </item> 
   
  <item> 
   <title>&gt; You also need to use the default charset for the email hea</title> 
   <description>&gt; 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 &#039;US-ASCII&#039; rather than this code:

    &#039;value&#039; =&gt; isset($GLOBALS[&#039;nls&#039;][&#039;emails&#039;][$GLOBALS[&#039;language&#039;]])

        ? $GLOBALS[&#039;nls&#039;][&#039;emails&#039;][$GLOBALS[&#039;language&#039;]]

        : (isset($GLOBALS[&#039;nls&#039;][&#039;charsets&#039;][$GLOBALS[&#039;language&#039;]])

            ? $GLOBALS[&#039;nls&#039;][&#039;charsets&#039;][$GLOBALS[&#039;language&#039;]]

            : &#039;ISO-8859-1&#039;),

Because those convertCharset calls are going to add up in a hurry.</description> 
   <pubDate>Fri, 24 Mar 2006 04:49:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2702#t18083</link> 
  </item> 
   
  <item> 
   <title>First attempt at converting headers has been completed.</title> 
   <description>First attempt at converting headers has been completed.</description> 
   <pubDate>Fri, 24 Mar 2006 05:46:18 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2702#t18084</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; You also need to use the default charset for the email he</title> 
   <description>&gt;&gt; You also need to use the default charset for the email headers.

&gt;

&gt; So we have to run every header line through String::convertCharset()? 

&gt;  In that case, we really need to change the preference defaults back 

&gt; to &#039;US-ASCII&#039; rather than this code:

&gt;     &#039;value&#039; =&gt; isset($GLOBALS[&#039;nls&#039;][&#039;emails&#039;][$GLOBALS[&#039;language&#039;]])

&gt;         ? $GLOBALS[&#039;nls&#039;][&#039;emails&#039;][$GLOBALS[&#039;language&#039;]]

&gt;         : (isset($GLOBALS[&#039;nls&#039;][&#039;charsets&#039;][$GLOBALS[&#039;language&#039;]])

&gt;             ? $GLOBALS[&#039;nls&#039;][&#039;charsets&#039;][$GLOBALS[&#039;language&#039;]]

&gt;             : &#039;ISO-8859-1&#039;),

&gt; 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&#039;t really test it unfortunately, because Cyrus doesn&#039;t allow unencoded 8bit characters in headers anyway.</description> 
   <pubDate>Fri, 24 Mar 2006 09:34:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2702#t18089</link> 
  </item> 
   
  <item> 
   <title>&gt; But they will do anyway if you use that feature, right? I </title> 
   <description>&gt; But they will do anyway if you use that feature, right? I can&#039;t 

&gt; really test it unfortunately, because Cyrus doesn&#039;t allow unencoded 

&gt; 8bit characters in headers anyway.



The way you changed the preference, then yes.  That&#039;s why I originally had the preference set to &#039;&#039; (for Default RFC Encoding) by default.  If we would have a blank option, and ship with blank (i.e. us-ascii) as the default, then the &#039;default_charset&#039; globals don&#039;t get set and none of the convertCharset() calls are triggered.



I guess what I am trying to say is I believe we should ship with the default as &#039;US-ASCII&#039; (i.e. replace the &#039;ISO-8859-1&#039; entry with US-ASCII) since this is the &quot;proper&quot; RFC-compliant charset to use by default.</description> 
   <pubDate>Fri, 24 Mar 2006 15:53:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2702#t18107</link> 
  </item> 
   
  <item> 
   <title>Makes sense. Changed in CVS.</title> 
   <description>Makes sense. Changed in CVS.</description> 
   <pubDate>Fri, 24 Mar 2006 15:58:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2702#t18110</link> 
  </item> 
   
  <item> 
   <title>All coding should be completed.  Tests have been working for</title> 
   <description>All coding should be completed.  Tests have been working for me.  Enhancement has been completed so closing ticket - bug reports should go into new tickets.</description> 
   <pubDate>Fri, 31 Mar 2006 22:58:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/2702#t18540</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
