Doc #60210 [Asn->Csd]: [DE] Example is not correct, as german Umlaut gets also encoded

From: Date: Thu, 03 Nov 2011 13:17:29 +0000
Subject: Doc #60210 [Asn->Csd]: [DE] Example is not correct, as german Umlaut gets also encoded
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7386@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60210&edit=1 ID: 60210 Updated by: raphaelm@php.net Reported by: fgunni at 01019freenet dot de Summary: [DE] Example is not correct, as german Umlaut gets also encoded -Status: Assigned +Status: Closed Type: Documentation Problem Package: Translation problem PHP Version: 5.3.8 Assigned To: raphaelm Block user comment: N Private report: N New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2011-11-03 13:15:48] raphaelm@php.net Automatic comment from SVN on behalf of raphaelm Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=318735 Log: Doc Bugs #55803 and #60210 fixed. ------------------------------------------------------------------------ [2011-11-03 13:04:58] fgunni at 01019freenet dot de Description: ------------ --- From manual page: http://www.php.net/function.htmlentities#refsect1-function.htmlentities-examples --- Umlaut (ü => &uuml;) also gets encoded. Wrong: <?php $str = "Ein 'Anführungszeichen' ist <b>fett</b>"; // Gibt aus: Ein 'Anführungszeichen' ist &lt;b&gt;fett&lt;/b&gt; echo htmlentities($str); // Gibt aus: Ein &#039;Anführungszeichen&#039; ist &lt;b&gt;fett&lt;/b&gt; echo htmlentities($str, ENT_QUOTES); ?> Correct: <?php $str = "Ein 'Anführungszeichen' ist <b>fett</b>"; // Gibt aus: Ein 'Anf&uuml;hrungszeichen' ist &lt;b&gt;fett&lt;/b&gt; echo htmlentities($str); // Gibt aus: Ein &#039;Anf&uuml;hrungszeichen&#039; ist &lt;b&gt;fett&lt;/b&gt; echo htmlentities($str, ENT_QUOTES); ?> ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60210&edit=1

« previous php.doc.bugs (#7386) next »