Hi,
I recently moved server company and installed the script on my new server, however I am getting the following error returned during search queries:
Warning: htmlentities() [function.htmlentities]: charset `ANSI_X3.4-1968' not supported, assuming iso-8859-1 in /home/mysite/public_html/search.php on line 95
Any ideas what might be happening ?
regards
Thanx David,
That fixed the error. I don;t know why it is happening with PHP now, I can only imagine it must be compiled differently on this server or using a different version from my last server.
The server was all setup for me as it is fully managed, so I never actually compiled anything myself, but this fixes it anyway. I don't if it is a fix or a plaster over a wound, but I guess we'll find out. :)
regards
Hi,
Is "ANSI_X3.4-1968" what you have setup in config.php?
Normally, it is empty:
$config_charset = "";
However, if PHP is for some reason defaulting the htmlentities() function to ANSI_X3.4-1968 (whatever that is!!) then I would force it to use either UTF-8 or ISO-8859-1 (as it chose as the default), for example:
$config_charset = "iso-8859-1";
That should at least stop the error; however I'm not sure why it is happening in the first place, but it does seem to be a common PHP issue (nothing to do with Price Tapestry):
http://www.google.com/search?q=php+ANSI_X3.4-1968
Cheers,
David.