Strange warning "Warning: htmlentities(): charset `US-ASCII'..."

Posted by wnd 
wnd
Strange warning "Warning: htmlentities(): charset `US-ASCII'..."
July 21, 2005 05:53AM
I've got some troubles after install Phorum 5.1.0-alpha.

There is message I get in message list when I use Russian localization:
Warning: htmlentities(): charset `US-ASCII' not supported, assuming iso-8859-1 in /usr/home/forum/for-ua.com/phorum/list.php on line 347

Regards,
wnd



Edited 1 time(s). Last edit at 07/21/2005 06:52AM by wnd.
wnd
Re: Strange warning "Warning: htmlentities(): charset `US-ASCII'..."
July 21, 2005 07:00AM
Sorry... Fixed by added $PHORUM["DATA"]['CHARSET']="Windows-1251"; to the lang file.

Regards,
wnd
Re: Strange warning "Warning: htmlentities(): charset `US-ASCII'..."
July 21, 2005 07:31AM
I don't think that there is already a russian version for 5.1.
Please use the stable-version 5.0.16 if you want to run the board in production.


Thomas Seifert
Re: Strange warning "Warning: htmlentities(): charset `US-ASCII'..."
June 23, 2006 03:50AM
Hi,
same problem with me :
Quote

Warning: htmlentities(): charset `iso-8859-6' not supported, assuming iso-8859-1 in /home/www/07191c332245400d031a3cf90892a755/web/phorum/read.php on line 490
I try to set an arabian language forum, it really works but I get this error message with this in my language file updated to Phorum 5.1.13 :
Quote

$PHORUM['DATA']['CHARSET'] = "iso-8859-6";
// The encoding used for outgoing mail messages.
$PHORUM['DATA']['MAILENCODING'] = "8bit";
// Some languages need additional meta tags to set encoding, etc.
$PHORUM["DATA"]['LANG_META']="<META content=\"text/html; charset=windows-1257\" http-equiv=\"Content-Type\" />";
Anyways, I can change the line 490 in the read.php page but it is not a good solution because there is also many others page to set like this :
Quote

$PHORUM["DATA"]["HTML_TITLE"].=@htmlentities(PHORUM_SEPARATOR, ENT_COMPAT, $PHORUM["DATA"]["CHARSET"] );;
My provider phpinfo() is :
Quote

HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
What can I do ? Ask him to provide also ISO-8859-6 ? Use a .htaccess to change it ?
If somebody know a Phorum 5.1.13 or lower using arabian language, it will be also helpfull for me.
Thank you for any response.

Patricius
Avignon, France



Edited 2 time(s). Last edit at 06/23/2006 03:51AM by Patricius.
Re: Strange warning "Warning: htmlentities(): charset `US-ASCII'..."
June 23, 2006 04:12AM
the supported charsets are listed on this site
[de.php.net]


Thomas Seifert
Sorry, only registered users may post in this forum.

Click here to login