note 74457 added to function.urldecode

From: Date: Thu, 12 Apr 2007 11:32:48 +0000
Subject: note 74457 added to function.urldecode
Groups: php.notes 
Request: Send a blank email to php-notes+get-125327@lists.php.net to get a copy of this message
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) ); } ---- Server IP: 69.147.83.197 Probable Submitter: 193.203.60.1 ---- Manual Page -- http://www.php.net/manual/en/function.urldecode.php Edit -- https://master.php.net/note/edit/74457 Del: integrated -- https://master.php.net/note/delete/74457/integrated Del: useless -- https://master.php.net/note/delete/74457/useless Del: bad code -- https://master.php.net/note/delete/74457/bad+code Del: spam -- https://master.php.net/note/delete/74457/spam Del: non-english -- https://master.php.net/note/delete/74457/non-english Del: in docs -- https://master.php.net/note/delete/74457/in+docs Del: other reasons-- https://master.php.net/note/delete/74457 Reject -- https://master.php.net/note/reject/74457 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125327) next »