Re: URL decode
| From: | Chris Shiflett | Date: | Mon, 11 Jul 2005 03:51:18 +0000 |
| Subject: | Re: URL decode | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-218418@lists.php.net to get a copy of this message | ||
Mario netMines wrote:
I have a value like: %u0394%u0397%u03A4%u039C%u039B Is there a way to decode to normal characters (like javascript's unescape() function)I think you might want to try mb_parse_str(), although I can't run a quick test for you, because I don't have the multibyte extension enabled in my current build. I would try something like this: <?php $foo = '%u0394%u0397%u03A4%u039C%u039B'; $bar = array(); mb_parse_string($foo, $bar); print_r($bar); ?> Hope that helps. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/