note 116132 added to function.htmlspecialchars
| From: | ciltocruz | Date: | Wed, 12 Nov 2014 13:08:27 +0000 |
| Subject: | note 116132 added to function.htmlspecialchars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200877@lists.php.net to get a copy of this message | ||
I have a problem...
I used PHP 5.5 and this code return empty String.
$myCaption = 'áéÃ';
//encode
echo htmlentities($myCaption, ENT_QUOTES);
//reverse (decode)
echo html_entity_decode($myCaptionEncoded);
In PHP 5.2 returns this:
áéÃ
áéÃ
Why?
I need to convert from "á" to "á"
and others especials characters but i don't know how...
Any Help? :D
----
Server IP: 72.52.91.14
Probable Submitter: 87.218.176.38
----
Manual Page -- http://php.net/manual/en/function.htmlspecialchars.php
Edit -- https://master.php.net/note/edit/116132
Del: integrated -- https://master.php.net/note/delete/116132/integrated
Del: useless -- https://master.php.net/note/delete/116132/useless
Del: bad code -- https://master.php.net/note/delete/116132/bad+code
Del: spam -- https://master.php.net/note/delete/116132/spam
Del: non-english -- https://master.php.net/note/delete/116132/non-english
Del: in docs -- https://master.php.net/note/delete/116132/in+docs
Del: other reasons-- https://master.php.net/note/delete/116132
Reject -- https://master.php.net/note/reject/116132
Search -- https://master.php.net/manage/user-notes.php