note 104118 added to function.htmlspecialchars
| From: | portalpress dot org at gmail dot com | 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) .
" ''<>&" . chr(128) . chr(34) .
"滭".áµá¥áá áá£áááФâ©ââ¦â¥â£â abcd
. PHP_EOL . "Š滭獚€誓迪" .
"\x0D\x0A" . æ»çèªè¿ª
String on screen with pf_encode_string():
Ž Z ž z
''<>&â¬"æ»áµá¥áá áá£áááФâ©ââ¦â¥â£â abcd
Å æ»çâ¬èªè¿ªæ»çèªè¿ª
String on screen with umlaute():
Ž Z ž z
''<>&â¬"滭áâµáÆÂ¥Ã¡ÆÂáÆ
áÆâáÆÂ£Ã¡ÆÅ¡Ã¡ÆÂáÆâäââ¢Â©Ã¢â¢Åââ¢Â¦Ã¢â¢Â¥Ã¢â¢Â£Ã¢â¢
abcd Š滭獚€誓迪
æ»Âçšèªâ迪
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