You are here: Re: unicode entities from characters « PHP Programming Language « IT news, forums, messages
Re: unicode entities from characters

Posted by R. Rajesh Jeba Anbiah on 09/02/06 19:17

Platero wrote:
> Hi, is there a way to convert special characters inserted by a user in a
> form INTO unicode entities? The output format should be numeric:
> --->""", not "'". I tried htmlentities and htmlspecialchars but
> they don't convert "à","è","é" etc. Should I write a custom function? I
> can't find a native one. Thanks. :-)

AFAIK, custom function is a better option. I have seen the
uniord() function that I added in to php manual's user note
<http://in.php.net/ord#46267> is been widely used in similar contexts.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.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

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