<?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>Encoding issues</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:21 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/9992</link> 
  <atom:link rel="self" type="application/rss+xml" title="Encoding issues" href="https://bugs.horde.org/ticket/9992/rss" /> 
  <description>Encoding issues</description> 
 
   
   
  <item> 
   <title>Unicode characters in multipart messages are broken - try to</title> 
   <description>Unicode characters in multipart messages are broken - try to send multipart (plain + html) message from gmail.com which will be in different encoding from your default encoding. </description> 
   <pubDate>Tue, 26 Apr 2011 22:30:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64189</link> 
  </item> 
   
  <item> 
   <title>Huh?  What does Gmail have to do with IMP?  And what about t</title> 
   <description>Huh?  What does Gmail have to do with IMP?  And what about the encoding is wrong?  E.g. is something being quoted-printable encoded when it is supposed to be base64 encoded?</description> 
   <pubDate>Tue, 26 Apr 2011 22:36:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64190</link> 
  </item> 
   
  <item> 
   <title>&gt; Huh?  What does Gmail have to do with IMP?  And what about</title> 
   <description>&gt; Huh?  What does Gmail have to do with IMP?  And what about the 
&gt; encoding is wrong?  E.g. is something being quoted-printable encoded 
&gt; when it is supposed to be base64 encoded?

Just try to send unicode message from gmail.com to your account and read it via Horde/IMP - the unicode characters will be broken, IMP is just not able to set character set right.</description> 
   <pubDate>Tue, 26 Apr 2011 23:00:33 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64192</link> 
  </item> 
   
  <item> 
   <title>Attaching screenshot</title> 
   <description>Attaching screenshot</description> 
   <pubDate>Tue, 26 Apr 2011 23:08:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64193</link> 
  </item> 
   
  <item> 
   <title>Attaching message source displayed on screenshot</title> 
   <description>Attaching message source displayed on screenshot</description> 
   <pubDate>Tue, 26 Apr 2011 23:09:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64194</link> 
  </item> 
   
  <item> 
   <title>Works fine here.</title> 
   <description>Works fine here.</description> 
   <pubDate>Tue, 26 Apr 2011 23:18:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64195</link> 
  </item> 
   
  <item> 
   <title>Which seems to indicate there is an issue with your local PH</title> 
   <description>Which seems to indicate there is an issue with your local PHP installation.</description> 
   <pubDate>Tue, 26 Apr 2011 23:18:44 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64196</link> 
  </item> 
   
  <item> 
   <title>&gt; Which seems to indicate there is an issue with your local </title> 
   <description>&gt; Which seems to indicate there is an issue with your local PHP installation.

Text is (here) displayed correctly only in text area when replaying to the message.

When i send non-multipart message, everything is displayed ok. Everything was also ok with IMP4. How can i debug this ?</description> 
   <pubDate>Tue, 26 Apr 2011 23:26:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64198</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Which seems to indicate there is an issue with your local</title> 
   <description>&gt;&gt; Which seems to indicate there is an issue with your local PHP installation.
&gt;
&gt; Text is (here) displayed correctly only in text area when replaying 
&gt; to the message.
&gt;
&gt; When i send non-multipart message, everything is displayed ok. 
&gt; Everything was also ok with IMP4. How can i debug this ?

There is no easy location to debug since the display code is (necessarily) very complicated and is controlled by a bunch of libraries.</description> 
   <pubDate>Wed, 27 Apr 2011 04:50:19 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64205</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt;&gt; Which seems to indicate there is an issue with your loca</title> 
   <description>&gt;&gt;&gt; Which seems to indicate there is an issue with your local PHP installation.
&gt;&gt;
&gt;&gt; Text is (here) displayed correctly only in text area when replaying
&gt;&gt; to the message.
&gt;&gt;
&gt;&gt; When i send non-multipart message, everything is displayed ok.
&gt;&gt; Everything was also ok with IMP4. How can i debug this ?
&gt;
&gt; There is no easy location to debug since the display code is 
&gt; (necessarily) very complicated and is controlled by a bunch of 
&gt; libraries.

So what do you suggest ? I&#039;m using original packages of PHP from Debian Lenny. Thanks.</description> 
   <pubDate>Wed, 27 Apr 2011 08:25:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64216</link> 
  </item> 
   
  <item> 
   <title>More info: I have enabled showing of all e-mail parts so i w</title> 
   <description>More info: I have enabled showing of all e-mail parts so i was able to see HTML and also text part of the message. The HTML part is always broken, text part is ok. I&#039;m attaching the source of HTML part.</description> 
   <pubDate>Wed, 27 Apr 2011 17:28:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64252</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #9992: T</title> 
   <description>Changes have been made in Git for this ticket:

Bug #9992: Test case

 1 files changed, 12 insertions(+), 0 deletions(-)
http://git.horde.org/horde-git/-/commit/4e8827d804ad8ecfc8e13a065e3e9b0d8e4915cb</description> 
   <pubDate>Wed, 27 Apr 2011 22:42:36 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64260</link> 
  </item> 
   
  <item> 
   <title>Probably a very good chance this is a duplicate of Ticket #9</title> 
   <description>Probably a very good chance this is a duplicate of Ticket #9714 or #9567.  However, I can&#039;t reproduce.  You will have to provide a reproducible failing test case or else I am going to assume that your PHP installation is broken.

You can try running the test suite for Horde_Domhtml to see if it fails on your system.</description> 
   <pubDate>Wed, 27 Apr 2011 22:43:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64261</link> 
  </item> 
   
  <item> 
   <title>&gt; You can try running the test suite for Horde_Domhtml to se</title> 
   <description>&gt; You can try running the test suite for Horde_Domhtml to see if it 
&gt; fails on your system.

I don&#039;t know how exactly should i do this. I downloaded the whole git repository and run:
php5 framework/Util/test/Horde/Util/DomhtmlTest.php

but:

Warning: require_once(Horde/Test/Autoload.php): failed to open stream: No such file or directory in /home/nobackup/git/horde/framework/Util/test/Horde/Util/Autoload.php on line 13

Fatal error: require_once(): Failed opening required &#039;Horde/Test/Autoload.php&#039; (include_path=&#039;.:/usr/share/php:/usr/share/pear&#039;) in /home/nobackup/git/horde/framework/Util/test/Horde/Util/Autoload.php on line 13

Horde is installed via pear in /usr/share/horde but Horde libraries are in standard path /usr/share/php/Horde .</description> 
   <pubDate>Thu, 28 Apr 2011 08:46:31 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64266</link> 
  </item> 
   
  <item> 
   <title>It takes me about half of the day but i was able to find and</title> 
   <description>It takes me about half of the day but i was able to find and fix the problem. Unicode characters were broken by PHP funcion &#039;loadHTML&#039; of &#039;DOMDocument&#039; class. I have made this change in Horde source code based on comments on http://sk.php.net/manual/en/domdocument.loadhtml.php :

File: /usr/share/php/Horde/Domhtml.php

- $doc-&gt;loadHTML($this-&gt;_xmlencoding . Horde_String::convertCharset($text, $charset, &#039;UTF-8&#039;));

+ $text = mb_convert_encoding(Horde_String::convertCharset($text, $charset, &#039;UTF-8&#039;), &#039;HTML-ENTITIES&#039;, &#039;UTF-8&#039;);
+ $doc-&gt;loadHTML($this-&gt;_xmlencoding . $text);
</description> 
   <pubDate>Fri, 29 Apr 2011 00:47:57 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64287</link> 
  </item> 
   
  <item> 
   <title>5.0.2 and 5.0.3 are affected too</title> 
   <description>5.0.2 and 5.0.3 are affected too</description> 
   <pubDate>Wed, 04 May 2011 12:51:10 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64451</link> 
  </item> 
   
  <item> 
   <title>&gt; It takes me about half of the day but i was able to find a</title> 
   <description>&gt; It takes me about half of the day but i was able to find and fix the 
&gt; problem. Unicode characters were broken by PHP funcion &#039;loadHTML&#039; of 
&gt; &#039;DOMDocument&#039; class. I have made this change in Horde source code 
&gt; based on comments on 
&gt; http://sk.php.net/manual/en/domdocument.loadhtml.php :
&gt;
&gt; File: /usr/share/php/Horde/Domhtml.php
&gt;
&gt; - $doc-&gt;loadHTML($this-&gt;_xmlencoding . 
&gt; Horde_String::convertCharset($text, $charset, &#039;UTF-8&#039;));
&gt;
&gt; + $text = mb_convert_encoding(Horde_String::convertCharset($text, 
&gt; $charset, &#039;UTF-8&#039;), &#039;HTML-ENTITIES&#039;, &#039;UTF-8&#039;);
&gt; + $doc-&gt;loadHTML($this-&gt;_xmlencoding . $text);

This won&#039;t work because it introduces a dependency on the mbstring PHP extension.

And as mentioned I previously, I can&#039;t duplicate this.  So that may mean that your libxml/PHP is broken.  Which is why I need a reproducible test case before I am going to look at making any changes.
</description> 
   <pubDate>Fri, 06 May 2011 21:04:55 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64512</link> 
  </item> 
   
  <item> 
   <title>Which versions of libxml and PHP do you use ? I&#039;m using libx</title> 
   <description>Which versions of libxml and PHP do you use ? I&#039;m using libxml 2.6.32 and PHP 5.2.6 - both are original Debian Lenny packages so, if they are broken, lots of other users will have problems. Do you mind to &#039;fix&#039; this if problem is really in libxml ?</description> 
   <pubDate>Sat, 07 May 2011 06:47:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64515</link> 
  </item> 
   
  <item> 
   <title>I tried the attached script (in UTF-8) on these installation</title> 
   <description>I tried the attached script (in UTF-8) on these installations:
PHP 5.2.6 and libxml 2.6.32 = broken
PHP 5.3.5 and libxml 2.6.32 = broken
PHP 5.3.2 and libxml 2.7.6 = ok

Seems that problem is in libxml. Will you include the patch into Horde in case i find a sufficient solution ?</description> 
   <pubDate>Sat, 07 May 2011 07:20:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64516</link> 
  </item> 
   
  <item> 
   <title>&gt; I tried the attached script (in UTF-8) on these installati</title> 
   <description>&gt; I tried the attached script (in UTF-8) on these installations:
&gt; PHP 5.2.6 and libxml 2.6.32 = broken
&gt; PHP 5.3.5 and libxml 2.6.32 = broken
&gt; PHP 5.3.2 and libxml 2.7.6 = ok
&gt;
&gt; Seems that problem is in libxml. Will you include the patch into 
&gt; Horde in case i find a sufficient solution ?

Which is why we explicitly say that libxml 2.6 is broken in horde/docs/INSTALL.</description> 
   <pubDate>Tue, 10 May 2011 03:14:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/9992#t64536</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
