[Tickets #9567] Re: charset pb replying to message

bugs at horde.org bugs at horde.org
Tue Mar 15 09:54:47 UTC 2011


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

Ticket URL: http://bugs.horde.org/ticket/9567
------------------------------------------------------------------------------
  Ticket             | 9567
  Updated By         | rsalmon at mbpgroup.com
  Summary            | charset pb replying to message
  Queue              | IMP
  Version            | Git master
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             | Michael Slusarz
------------------------------------------------------------------------------


rsalmon at mbpgroup.com (2011-03-15 09:54) wrote:

> A user had submitted this patch awhile back.  Maybe this fixes  
> things for you?

Nope, it does fix anything, although I use the same OS Centos 5.4, but  
probably not the same libxml/php version

Googling a bit, I ran into this article  
http://devzone.zend.com/article/8855, 5. Save/dumping operations and  
encoding :

"Node or XML subtree dumping using the DOMDocument::saveXML($node)  
method is always performed in UTF-8."

This is the issue I'm having, $dom->encoding = iso-8859-1 and  
$dom->dom->saveXML($child) returns utf-8.

The following patch works for me for all messages read, reply,  
forward... (for whatever I've tested so far) :
--- Xss.php.org	2011-03-15 10:41:22.000000000 +0100
+++ Xss.php	2011-03-15 10:41:24.000000000 +0100
@@ -130,7 +130,7 @@
              }
          }

-        return Horde_String::convertCharset($text, $dom->encoding,  
$this->_params['charset']);
+        return $text;
      }

      /**










More information about the bugs mailing list