note 111596 added to function.htmlspecialchars
| From: | strange dot alex at gmail dot com | Date: | Thu, 07 Mar 2013 05:24:55 +0000 |
| Subject: | note 111596 added to function.htmlspecialchars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193970@lists.php.net to get a copy of this message | ||
> For the purposes of this function, the encodings ISO-8859-1, ISO-8859-15, UTF-8, cp866, cp1251,
> cp1252, and KOI8-R are effectively equivalent, provided the string itself is valid for the encoding,
> as the characters affected by htmlspecialchars() occupy the same positions in all of these
> encodings.
This is not true, actually!
$txt = "Russian text in KOI8-r<br>"; // type here realy russian text in koi8-r !
htmlspecialchars($txt,null,'KOI8-R') = Russian text in KOI8-r<br>
htmlspecialchars($txt,null,'UTF-8') =
Result is EMPTY !!!
----
Server IP: 69.147.83.199
Probable Submitter: 178.49.31.217
----
Manual Page -- http://php.net/manual/en/function.htmlspecialchars.php
Edit -- https://master.php.net/note/edit/111596
Del: integrated -- https://master.php.net/note/delete/111596/integrated
Del: useless -- https://master.php.net/note/delete/111596/useless
Del: bad code -- https://master.php.net/note/delete/111596/bad+code
Del: spam -- https://master.php.net/note/delete/111596/spam
Del: non-english -- https://master.php.net/note/delete/111596/non-english
Del: in docs -- https://master.php.net/note/delete/111596/in+docs
Del: other reasons-- https://master.php.net/note/delete/111596
Reject -- https://master.php.net/note/reject/111596
Search -- https://master.php.net/manage/user-notes.php