Re: URL decode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux