<?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>wrong utf-8 encondigs at html viewer</title> 
  <pubDate>Fri, 10 Apr 2026 14:10:45 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/11069</link> 
  <atom:link rel="self" type="application/rss+xml" title="wrong utf-8 encondigs at html viewer" href="https://bugs.horde.org/ticket/11069/rss" /> 
  <description>wrong utf-8 encondigs at html viewer</description> 
 
   
   
  <item> 
   <title>When we are using &quot;View HTML data in new window&quot; function th</title> 
   <description>When we are using &quot;View HTML data in new window&quot; function the framework creates DOMDocument to make cleaning and de-XSS.
There is a problem here with utf-8 (discussed  php.net/manual/en/domdocument.loadhtml.php)
I found the bug and fixed in my distribution (PEAR/Horde/Domhtml.php line 68):
Use $doc-&gt;loadHTML(&#039;&lt;html&gt;&lt;head&gt;&lt;!--a75c305b1c0a6022--&gt;&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=UTF-8&quot;&gt;&#039; .
 Horde_String::convertCharset($text, $charset, &#039;UTF-8&#039;));
instead of $doc-&gt;loadHTML($this-&gt;_xmlencoding . Horde_String::convertCharset($text, $charset, &#039;UTF-8&#039;));
</description> 
   <pubDate>Mon, 12 Mar 2012 09:31:48 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11069#t70666</link> 
  </item> 
   
  <item> 
   <title>No.  You can&#039;t go inserting HTML tags into HTML data, becaus</title> 
   <description>No.  You can&#039;t go inserting HTML tags into HTML data, because you are overwriting the contents of the HTML data.

Not to mention there is no reproducible issue here.  At a minimum, someone would have to provide a failing test case.

This is most likely due to an out-of-date libxml anyway.</description> 
   <pubDate>Tue, 13 Mar 2012 09:39:03 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11069#t70693</link> 
  </item> 
   
  <item> 
   <title>1)libxml2 is the lattest availible via remi/epel/centos repo</title> 
   <description>1)libxml2 is the lattest availible via remi/epel/centos repos on Cenos5: it is 2.6.26.
2) Do you think that adding to the beginning of html content of string &quot;&lt;?xml ...&gt;&quot; is more corect that adding of &lt;html&gt;&lt;head&gt;&lt;!--a75c305b1c0a6022--&gt;&lt;meta ..&gt; ? BTW it is also a hack,that creates ambiguous content.
3)I am not overwrite the html content -I just add more to the begginning of content, I suppose
3)It is easy to proof - but I dont plan to do test cases for such thing, I can just send 2 e-mails with attachments- html content and image with screenshot of correct rendering.
4) my solution works fine, and I know that many non-latin users need ANY solution that works!</description> 
   <pubDate>Tue, 13 Mar 2012 10:00:59 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11069#t70698</link> 
  </item> 
   
  <item> 
   <title>&gt; 1)libxml2 is the lattest availible via remi/epel/centos re</title> 
   <description>&gt; 1)libxml2 is the lattest availible via remi/epel/centos repos on 
&gt; Cenos5: it is 2.6.26.

This IS outdated. See http://www.horde.org/apps/horde/docs/INSTALL#prerequisites</description> 
   <pubDate>Tue, 13 Mar 2012 10:24:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/11069#t70700</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
