note 74457 deleted from function.urldecode by danbrown
| From: | danbrown@php.net | Date: | Fri, 13 Aug 2010 15:31:54 +0000 |
| Subject: | note 74457 deleted from function.urldecode by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171652@lists.php.net to get a copy of this message | ||
Note Submitter: brainstorm<at>brainstorm.name
----
Ok, all looks like, but what to do if you use another encoding with urldecode?
Here is my solution - I have towork with project in windows-1251 encoding
$textu = Misc_func::getRequestParam('text', '');
if($_SERVER["REQUEST_METHOD"] == 'GET'){
$text = iconv('utf-8', 'cp1251', urldecode($textu) );
}