Below the definition of the terms charset and collation which will be used frequently in this section.
If you have problems with the right display of characters, you should try to upgrade to the last WB version available. From WB v2.6.6 onwards, on should set the following setting via the WB backend: Settings -> Show Advanced Options -> Charset -> uft-8. Other charsets should work as well, but stick to uft-8 to prevent possible problems. Even if the last WebsiteBaker version is installed, the following problems may occur.
Check if the following lines are contained in the index.php file of your template:
<meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" />
If you can exclude Reason #1, check the charset used by your browser. If the browser is set to a value other than utf-8 (e.g. ISO-8859-1) one should change the browser settings. If you want to force the browser to use uft-8 for all pages, place a .htaccess file in the WB root folder. This requires a Apache web server.
<Files .htaccess> order allow,deny deny from all </Files> php_value default_charset UTF-8
The statement above enforces the Apache web server to send all php generated pages with UTF-8 encoding.
If you use Cyrillic, e.g. "И" and "ш" may be affected, for Greek e.g. "ή" may be displayed wrong.
The default-characer-set can be changed by the MySQL files my.ini or my.cnf file. If no default-character-set is defined in those files, latin1 is used as default-character-set by MySQL. If you choose a character-set other than latin1 when creating the database (e.g. by myphpadmin), one needs to add this value as default-character-set. In other words, the character set used during the creation of the database must be identicall to the default-character-set and vice vera. If character-set of database and default-character-set are different, characters will be displayed wrong.
If your service provider defines a default-character-set other than latin1 by the use of my.ini, the following options exist.
Note:
Option 2 requires you to create the WB database manually by the use of e.g. myphpadmin. It is not possible to use the installation routine of the WB installation wizard, as WB uses latin1 as default. You must ensure that the character-set of all DB tables and fields is set to the default-character-set.