Comments - Joomla 1.5 and unicode databse

8 years, 9 months ago Ali Jam

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 [code]libraries/joomla/database/database/mysql.php[/code] or (depending on your setting) [code]libraries/joomla/database/database/mysqli.php[/code]

comment the line 186

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

and add this instead(assuming these days you'll have unicode supported database: [code] return (1);[/code]

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); }[/code]

Best

 
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.