Hướng dẫn khắc phục lỗi font unicode của Joomla 1.5 trên MariaDB Print

  • 7

Code:

libraries/joomla/database/database/mysql.php

or (depending on your setting)

Code:

libraries/joomla/database/database/mysqli.php


comment the line 186

Code:

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


and add this instead(assuming these days you'll have unicode supported database:

Code:

   return (1);


the code looks like:

Code:

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

Was this answer helpful?

« Back