|
Posted by Platero on 09/01/06 14:49
I need help but I still try, so...
I made up this:
<?php
$stringa = "' < £ € ¥";
$convmap = array(0x80, 0xff, 0, 0xff);
$str = mb_encode_numericentity($stringa, $convmap, "ISO-8859-1");
echo $str;
?>
it is quite perfectly working but the first 2 characters are not
encoded. So: how can I change $convmap to encode the characters in the
function entity_to_decimal_value here?
http://radekhulan.cz/item/php-script-to-convert-x-html-entities-to-decimal-unicode-representation/category/apache-php
Thanks!
[Back to original message]
|