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

Home » FUDforum » FUDforum Suggestions » Global Configuration and UTF-8 support
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Global Configuration and UTF-8 support [message #30299 is a reply to message #30275] Thu, 16 February 2006 13:37 Go to previous messageGo to previous message
rhinofly is currently offline  rhinofly   China
Messages: 15
Registered: August 2004
Karma:
Junior Member
I found the answer:
In the 'Global Configuration' page source:
<html>
<head>
<link rel="StyleSheet" href="adm.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8
">
</head>
<body>
<table class="maintable">
<tr>
<td class="linkdata">
<table class="linktable">
<tr>
<td>

Make a attention at the '\n' after 'charset=utf-8'.

if change the html to:
<html>
<head>
<link rel="StyleSheet" href="adm.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<table class="maintable">
<tr>
<td class="linkdata">
<table class="linktable">
<tr>
<td>

that is not a '\n' after 'charset=utf-8',everything will be ok.

Is this a compatibility problem of firefox?

Here is the modify to fix it:
file: adm/admpanel.php line 1-12
<html>
<head>
<link rel="StyleSheet" href="adm.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=<?php
				//rhinofly
        if (file_exists($DATA_DIR . 'thm/' . $usr->theme_name . '/i18n/' . $usr->lang . '/charset')) {
                $char=trim(file_get_contents($DATA_DIR . 'thm/' . $usr->theme_name . '/i18n/' . $usr->lang . '/charset'));
        } else if (file_exists($DATA_DIR . 'thm/default/i18n/' . $usr->lang . '/charset')) {
                $char=trim(file_get_contents($DATA_DIR . 'thm/default/i18n/' . $usr->lang . '/charset'));
        } else {
                $char='us-ascii';
        }    
        echo $char;
?>">


the code is copy from http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=7550 .
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Hidden forum
Next Topic: admin email visible
Goto Forum:
  

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

Current Time: Thu Nov 21 22:40:34 GMT 2024

Total time taken to generate the page: 0.05051 seconds