note 99322 added to function.html-entity-decode
| From: | neurotic dot neu at gmail dot com | Date: | Tue, 10 Aug 2010 19:25:39 +0000 |
| Subject: | note 99322 added to function.html-entity-decode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171552@lists.php.net to get a copy of this message | ||
This is a safe rawurldecode with utf8 detection:
function utf8_rawurldecode($raw_url_encoded){
$enc = rawurldecode($raw_url_encoded);
if(utf8_encode(utf8_decode($enc))==$enc){;
return rawurldecode($raw_url_encoded);
}else{
return utf8_encode(rawurldecode($raw_url_encoded));
}
}
----
Server IP: 192.41.42.26
Probable Submitter: 188.36.64.148
----
Manual Page -- http://www.php.net/manual/en/function.html-entity-decode.php
Edit -- https://master.php.net/note/edit/99322
Del: integrated -- https://master.php.net/note/delete/99322/integrated
Del: useless -- https://master.php.net/note/delete/99322/useless
Del: bad code -- https://master.php.net/note/delete/99322/bad+code
Del: spam -- https://master.php.net/note/delete/99322/spam
Del: non-english -- https://master.php.net/note/delete/99322/non-english
Del: in docs -- https://master.php.net/note/delete/99322/in+docs
Del: other reasons-- https://master.php.net/note/delete/99322
Reject -- https://master.php.net/note/reject/99322
Search -- https://master.php.net/manage/user-notes.php