Prev | Current Page 223 | Next

Marc Delisle

"Mastering phpMyAdmin 2.11 for Effective MySQL Management"


Data Recoding
Here is the most important configuration parameter for recoding, shown here with
its default value:
$cfg['AllowAnywhereRecoding'] = FALSE;
To activate recoding, we have to set it to TRUE. When this is done, phpMyAdmin
verifies that the conditions for recoding are met. For the actual encoding of data, the
PHP component of the web server must support the iconv or the recode module.
If this is not the case, and the parameter has been set to TRUE, the following error
message will be generated:
Cannot load iconv or recode extension needed for charset conversion,
configure php to allow using these extensions or disable charset conversion in
phpMyAdmin.
If this message is displayed, consult your system's documentation (PHP or the
operating system) for the installation procedures.
Before phpMyAdmin 2.6.0, the default config.inc.php file did not make use of
UTF-8 encoding, so the $cfg['AllowAnywhereRecoding'] parameter was set to
FALSE, and no UTF-8 languages were offered in the Language selector. To enable it,
we just changed the parameter to TRUE.
Chapter 17
[ 255 ]
Since phpMyAdmin 2.6.0, the parameter is still set to FALSE by default, but the
UTF-8 language choices are nevertheless displayed in the Language selector. This
may lead to encoding problems. (See the section The Impact of Switching letter in
this chapter.


Pages:
211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235