note 104118 added to function.htmlspecialchars

From: Date: Tue, 24 May 2011 19:04:52 +0000
Subject: note 104118 added to function.htmlspecialchars
Groups: php.notes 
Request: Send a blank email to php-notes+get-180004@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 109.34.60.179 ---- Manual Page -- http://www.php.net/manual/en/function.htmlspecialchars.php Edit -- https://master.php.net/note/edit/104118 Del: integrated -- https://master.php.net/note/delete/104118/integrated Del: useless -- https://master.php.net/note/delete/104118/useless Del: bad code -- https://master.php.net/note/delete/104118/bad+code Del: spam -- https://master.php.net/note/delete/104118/spam Del: non-english -- https://master.php.net/note/delete/104118/non-english Del: in docs -- https://master.php.net/note/delete/104118/in+docs Del: other reasons-- https://master.php.net/note/delete/104118 Reject -- https://master.php.net/note/reject/104118 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#180004) next »