FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » No charset befor DISABLED_REASON
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
No charset befor DISABLED_REASON [message #30276] Wed, 15 February 2006 09:40 Go to next message
rhinofly is currently offline  rhinofly   China
Messages: 15
Registered: August 2004
Karma: 0
Junior Member
Because no charset specify for the html page befor echo DISABLED_REASON,when administrator specify a No-english massage as the DISABLED_REASON,the browser will just display the page in ISO-8859-15 and no one can read the massage.

I just modify the code to echo MY OWN charset,may be there is a better way to do it.

	/* before we go on, we need to do some very basic activation checks */
	if (!($FUD_OPT_1 & 1)) {
		//rhinofly
		header("Content-type: text/html; charset=UTF-8");
		fud_use('errmsg.inc');
		exit($DISABLED_REASON . __fud_ecore_adm_login_msg);
	}

Re: No charset befor DISABLED_REASON [message #30285 is a reply to message #30276] Wed, 15 February 2006 15:40 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Fixed in CVS, here is the patch:
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=7550


FUDforum Core Developer
Re: No charset befor DISABLED_REASON [message #30298 is a reply to message #30276] Thu, 16 February 2006 13:32 Go to previous message
rhinofly is currently offline  rhinofly   China
Messages: 15
Registered: August 2004
Karma: 0
Junior Member
Thanks,after update and Rebuild Theme,it's work.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Invisible subcategory
Next Topic: Online users not in real time
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 13:24:22 GMT 2024

Total time taken to generate the page: 0.02487 seconds