note 104118 deleted from function.htmlspecialchars by danbrown
| From: | danbrown@php.net | 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) .
" ''<>&" . 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.