Joomla 1.5 and unicode databse

You are viewing an old version of this question. View the current version here.

Help with moving from MySQL to MariaDB, features and compatibility

Answer Answered by Ali Jam in this comment.

I asked but no answers so I inspected and found the issue, I post here so if anyone needs to benefit the mariadb 10 for even older and non-supported versions can use this quick fix.

hope it helps

in libraries/joomla/database/database/mysql.php or (depending on your setting) ibraries/joomla/database/database/mysqli.php

comment the line 186

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: return (1);

the code looks like:

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

Best

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.