You are here: Re: [PHP] URL decode « PHP « IT news, forums, messages
Re: [PHP] URL decode

Posted by Chris Shiflett on 07/11/05 06:51

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация