Hi,
I have a problem I cannot understand. I use htmlentities to convert special characters to their ampersand equivalent. On my Linux Fedora Core 1 (php 4.3.6, apache 2.0.50) the behavious is really strange, as it always add extra special characters to the conversion.
For instance, if I convert the symbol '£' (& pound😉 htmlentities adds a 'Â', so that the total result is '& Acirc;& pound;'; before it. The '€' becomes something like 'â�¬' (& acirc;�& not😉. (PS the spaces were added so that this shows the code, not the rendered characters)
I did check on other servers and it works fine. I also checked the:
get_html_translation_table(HTML_ENTITIES)
which looks corrupted as it shows all question marks instead of the supposed symbols, like:
...
[�] => ð
[�] => ñ
[�] => ò
[�] => ó
...
I have tried to update from 4.3.3 to 4.3.6, but no better result. It appears that the html entities table is corrupted, but how to fix it?
Any help would be really appreciated.
Kind regards, Cristiano