- Posts: 16
- Thank you received: 0
Kunena 7.0.2 Released
The Kunena team has announce the arrival of Kunena 7.0.2 [K 7.0.2] in stable which is now available for download as a native Joomla extension for J! 5.3.x/5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Question Help with Latin special letters ( č ć š đ ž )
16 years 10 months ago #15541
by nijaz
Replied by nijaz on topic Re:Help with Latin special letters ( č ć š đ ž )
U can change collation with this php scrypt.
<?php
// your connection
mysql_connect("localhost","username","password");
mysql_select_db("database_name");
// convert code
$res = mysql_query("SHOW TABLES");
while ($row = mysql_fetch_array($res))
{
foreach ($row as $key => $table)
{
mysql_query("ALTER TABLE " . $table . " CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci");
echo $key . " => " . $table . " CONVERTED<br />";
}
}
?>
<?php
// your connection
mysql_connect("localhost","username","password");
mysql_select_db("database_name");
// convert code
$res = mysql_query("SHOW TABLES");
while ($row = mysql_fetch_array($res))
{
foreach ($row as $key => $table)
{
mysql_query("ALTER TABLE " . $table . " CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci");
echo $key . " => " . $table . " CONVERTED<br />";
}
}
?>
Please Log in or Create an account to join the conversation.
16 years 10 months ago - 16 years 10 months ago #15551
by Lintzy
Replied by Lintzy on topic Re:Help with Latin special letters ( č ć š đ ž )
Awesome! Something like that I am searching for a long time. How to use it? Save the code as *.php upload it in ? the joomla root directory? and call it in browser?
Last edit: 16 years 10 months ago by Lintzy.
Please Log in or Create an account to join the conversation.
16 years 10 months ago #15554
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re:Help with Latin special letters ( č ć š đ ž )
You save the code in a php file, and upload it in the root directory of your server, no need to upload it in the joomla directory and call it your browser.
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
16 years 10 months ago #15566
by Lintzy
Replied by Lintzy on topic Re:Help with Latin special letters ( č ć š đ ž )
Thanks a lot at both of you. I will try it on test database. I have learned to remember, that I must change the database collation BEFORE I install something to utf8, but it is very helfpul for a lot of users, with wrong collation, if it really works.
Please Log in or Create an account to join the conversation.
16 years 10 months ago #15572
by nijaz
Replied by nijaz on topic Re:Help with Latin special letters ( č ć š đ ž )
for me worked perfectly, if u have any problems post here.
Please Log in or Create an account to join the conversation.
16 years 10 months ago #15595
by Lintzy
Replied by Lintzy on topic Re:Help with Latin special letters ( č ć š đ ž )
:woohoo: It works! Thanks , karma up!
Please Log in or Create an account to join the conversation.
Time to create page: 0.283 seconds