svn: /phd/trunk/phpdotnet/phd/ Index.php Package/Generic/XHTML.php Package/PEAR/CHM.php

From: Date: Fri, 04 Sep 2009 12:03:18 +0000
Subject: svn: /phd/trunk/phpdotnet/phd/ Index.php Package/Generic/XHTML.php Package/PEAR/CHM.php
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-4834@lists.php.net to get a copy of this message
bjori Fri, 04 Sep 2009 12:03:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=288043 Log: Fix multibyte charset issue (reported by Nilgun) Changed paths: U phd/trunk/phpdotnet/phd/Index.php U phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php U phd/trunk/phpdotnet/phd/Package/PEAR/CHM.php Modified: phd/trunk/phpdotnet/phd/Index.php =================================================================== --- phd/trunk/phpdotnet/phd/Index.php 2009-09-04 11:46:27 UTC (rev 288042) +++ phd/trunk/phpdotnet/phd/Index.php 2009-09-04 12:03:18 UTC (rev 288043) @@ -300,8 +300,8 @@ public function format_ldesc($open, $name, $attrs, $props) { if ($open) { if (empty($this->nfo[$this->currentid]["ldesc"])) { - /* FIXME: How can I mark that node with "reparse" flag? */ - $s = htmlentities(trim($this->getReader()->readContent())); + /* FIXME: How can I mark that node with "reparse" flag? */ + $s = htmlentities(trim($this->getReader()->readContent()), ENT_COMPAT, "UTF-8"); $this->nfo[$this->currentid]["ldesc"] = $s; } } @@ -309,11 +309,10 @@ public function format_sdesc($open, $name, $attrs, $props) { if ($open) { if (empty($this->nfo[$this->currentid]["sdesc"])) { - /* FIXME: How can I mark that node with "reparse" flag? */ - $s = htmlentities(trim($this->getReader()->readContent())); + /* FIXME: How can I mark that node with "reparse" flag? */ + $s = htmlentities(trim($this->getReader()->readContent()), ENT_COMPAT, "UTF-8"); $this->nfo[$this->currentid]["sdesc"] = $s; } - } } Modified: phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php =================================================================== --- phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2009-09-04 11:46:27 UTC (rev 288042) +++ phd/trunk/phpdotnet/phd/Package/Generic/XHTML.php 2009-09-04 12:03:18 UTC (rev 288043) @@ -1407,7 +1407,7 @@ $id = uniqid("phd"); } - $retval .= '<li><a href="#'.$id.'">'.htmlentities($node->textContent, ENT_QUOTES).'</a></li>'; + $retval .= '<li><a href="#'.$id.'">'.htmlentities($node->textContent, ENT_QUOTES, "UTF-8").'</a></li>'; } $retval .= "</ol></div>"; return $retval; Modified: phd/trunk/phpdotnet/phd/Package/PEAR/CHM.php =================================================================== --- phd/trunk/phpdotnet/phd/Package/PEAR/CHM.php 2009-09-04 11:46:27 UTC (rev 288042) +++ phd/trunk/phpdotnet/phd/Package/PEAR/CHM.php 2009-09-04 12:03:18 UTC (rev 288043) @@ -237,13 +237,13 @@ $this->currentTocDepth++; fwrite($this->hhpStream, "{$ref}\n"); fwrite($this->hhcStream, "{$this->offset(1)}<li><object type=\"text/sitemap\">\n" . - "{$this->offset(3)}<param name=\"Name\" value=\"" . htmlentities($name) . "\">\n" . + "{$this->offset(3)}<param name=\"Name\" value=\"" . htmlentities($name, ENT_COMPAT, "UTF-8") . "\">\n" . "{$this->offset(3)}<param name=\"Local\" value=\"{$ref}\">\n" . "{$this->offset(2)}</object>\n"); if ($hasChild) fwrite($this->hhcStream, "{$this->offset(2)}<ul>\n"); fwrite($this->hhkStream, " <li><object type=\"text/sitemap\">\n" . " <param name=\"Local\" value=\"{$ref}\">\n" . - " <param name=\"Name\" value=\"" . htmlentities(self::cleanIndexName($name)) . "\">\n" . + " <param name=\"Name\" value=\"" . htmlentities(self::cleanIndexName($name, ENT_COMPAT, "UTF-8")) . "\">\n" . " </object>\n </li>\n"); } elseif ($this->flags & Render::CLOSE) { if ($hasChild) {

« previous php.doc.cvs (#4834) next »