|
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]
|