[Tickets #9992] Re: Encoding issues

bugs at horde.org bugs at horde.org
Fri Apr 29 00:47:57 UTC 2011


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

Ticket URL: http://bugs.horde.org/ticket/9992
------------------------------------------------------------------------------
  Ticket             | 9992
  Updated By         | azurit at pobox.sk
  Summary            | Encoding issues
  Queue              | IMP
  Version            | 5.0.1
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


azurit at pobox.sk (2011-04-29 00:47) wrote:

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 'loadHTML' of  
'DOMDocument' 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->loadHTML($this->_xmlencoding .  
Horde_String::convertCharset($text, $charset, 'UTF-8'));

+ $text = mb_convert_encoding(Horde_String::convertCharset($text,  
$charset, 'UTF-8'), 'HTML-ENTITIES', 'UTF-8');
+ $doc->loadHTML($this->_xmlencoding . $text);







More information about the bugs mailing list