En:Working with UTF8
From phpCMS
As of phpCMS version 1.2.2, it is not really easy to work with UTF-8 unless your server's default setting is already configured to use UTF-8.
Although there's a CHARSET option in defaults.php, this option is only used in some cases.
Additionally, HTTP headers are sent quite randomly (that means, not in a logical manner or in a central place).
The solution is to add the $DEFAULTS->CHARSET option to every call of Header("content-type...").
I changed the following files and lines to make utf-8 work for my site:
- class.cache_phpcms.php line 128
-
Header("Content-type: text/html; charset=".$DEFAULTS->CHARSET);
-
- class.cache_phpcms.php line 377
-
Header("Content-type: text/html; charset=".$DEFAULTS->CHARSET);
-
- class.gzip_phpcms.php line 54
-
Header('Content-type: text/html; charset='.$DEFAULTS->CHARSET);
-
- class.gzip_phpcms.php line 161
-
Header('Content-type: text/html; charset='.$DEFAULTS->CHARSET);
-
- class.layout_phpcms.php line 79
-
'<meta http-equiv="content-type" content="text/html; charset='.$DEFAULTS->CHARSET.'" />'."\n".
-
- class.layout_phpcms.php line 103
-
'<meta http-equiv="content-type" content="text/html;charset='.$DEFAULTS->CHARSET.'" />'."\n".
-
- class.layout_phpcms.php line 147
-
echo '<meta http-equiv="content-type" content="text/html;charset='.$DEFAULTS->CHARSET.'" />'."\n";
-
- class.lib_indexer_login_phpcms.php line 58
-
'<head><meta http-equiv="content-type" content="text/html;charset='.$DEFAULTS->CHARSET.'" />'."\n".
-
- class.realtime_phpcms.php line 126
-
Header("Content-type: text/html; charset=".$DEFAULTS->CHARSET);
-
- default.php line 110
-
$this->CHARSET = 'utf-8';
-
Of course, you'll also have to change your meta.tpl file(s) accordingly and save your content files in UTF-8.
Diese Seite in anderen Sprachen: Deutsch

