note 104118 deleted from function.htmlspecialchars by danbrown

From: Date: Tue, 24 May 2011 19:29:56 +0000
Subject: note 104118 deleted from function.htmlspecialchars by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180005@lists.php.net to get a copy of this message
Note Submitter: portalpress dot org at gmail dot com ---- After writing an extensive character translation function, I found umlaute() by info at 8th dot at 12-May-2011 06:28. I thought that I had overdone my job, looking at his function. The test string:chr(142) . " Z " . chr(158) . " z " . chr(160) . "&nbsp;&#39;'<>&" . chr(128) . chr(34) . "&#28397;".ႵქართულადФ╩╜♦♥♣♠abcd . PHP_EOL . "&Scaron;&#28397;&#29530;&euro;&#35475;&#36842;" . "\x0D\x0A" . 滭獚誓迪 String on screen with pf_encode_string(): Ž Z ž z ''<>&€"滭ႵქართულადФ╩╜♦♥♣♠abcd Š滭獚€誓迪滭獚誓迪 String on screen with umlaute(): Ž Z ž z &nbsp;&#39;'<>&€"&#28397;ႵქართულადФ╩╜♦♥♣♠abcd &Scaron;&#28397;&#29530;&euro;&#35475;&#36842; 滭獚誓迪 People that need a good function better look at manixrock(hat)gmail(doink)com 03-Jun-2010 03:14 http://www.php.net/manual/en/function.ord.php and build their own.

« previous php.notes (#180005) next »