Live chat

Broken encoding in Joomla 1.5

Joomla CMS version 1.5 is outdated and incompatible with some of our server settings. To correctly display Cyrillic characters, you need to make the following changes to the CMS code:

Depending on the DB driver used (mysql or mysqli), you need to find the following lines in the file /libraries/joomla/database/database/mysql.php
or /libraries/joomla/database/database/mysqli.php

return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));

and replace them with:

//return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));
return (1);

After the changes, the function should look like this:

function hasUTF()
{
$verParts = explode( '.', $this->getVersion() );
//return ($verParts[0] == 5 || ($verParts[0] == 4 && $verParts[1] == 1 && (int)$verParts[2] >= 2));
return (1);
}

Save the changes. We recommend updating the CMS to the latest version.