note 22242 added to function.htmlentities
| From: | tbreslowNOSPAM at yahoo dot com | Date: | Wed, 12 Jun 2002 01:46:32 +0000 |
| Subject: | note 22242 added to function.htmlentities | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31717@lists.php.net to get a copy of this message | ||
htmlentities does not convert ascii 255, the y-umlaut character that is part of ISO-8859-1.the
function below will fix this.
function DoHTMLEntities ($string)
{
$trans_tbl = get_html_translation_table (HTML_ENTITIES);
$trans_tbl[chr(255)] = 'ÿ';
return strtr ($string, $trans_tbl);
}
--
http://www.php.net/manual/en/function.htmlentities.php
http://master.php.net/manage/user-notes.php?action=edit+22242
http://master.php.net/manage/user-notes.php?action=delete+22242
http://master.php.net/manage/user-notes.php?action=reject+22242