- Posts: 159
- Thank you received: 8
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 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 config table returns latin1_swedish_ci
16 years 10 months ago - 16 years 10 months ago #18786
by guerilla
config table returns latin1_swedish_ci was created by guerilla
hi,
i changed my mysql table properties to utf8 but when i open kunena configuration page and press save, mysql table properties returns latin1_swedish. other tables are normal. it makes only config table. is there a code changing table language property at kunena? any idea about this problem?
i changed my mysql table properties to utf8 but when i open kunena configuration page and press save, mysql table properties returns latin1_swedish. other tables are normal. it makes only config table. is there a code changing table language property at kunena? any idea about this problem?
Last edit: 16 years 10 months ago by guerilla.
Please Log in or Create an account to join the conversation.
16 years 10 months ago #18950
by Matias
Replied by Matias on topic Re: config table returns latin1_swedish_ci
Easy workaround /etc/mysql/my.cnf:
character-set-server=utf8
default-collation=utf8_unicode_ci
character-set-server=utf8
default-collation=utf8_unicode_ci
Please Log in or Create an account to join the conversation.
16 years 10 months ago #19075
by guerilla
Replied by guerilla on topic Re: config table returns latin1_swedish_ci
no man, you dont understand me, mysql default character set and collation properties are already utf8. the problem is fb_config table. when i make some changes and save at kunenas configuration page, the config table's collation returns latin1_swedish.
maybe it is a phpmyadmin issue
maybe it is a phpmyadmin issue
Please Log in or Create an account to join the conversation.
16 years 10 months ago #19076
by guerilla
Replied by guerilla on topic Re: config table returns latin1_swedish_ci
am i wrong or kunena drops config table and creates again after every configuartion save process?
i gues this isue related with it. and i if it is, i guess this can sign as a bug
i gues this isue related with it. and i if it is, i guess this can sign as a bug
Please Log in or Create an account to join the conversation.
16 years 10 months ago #19103
by Matias
Replied by Matias on topic Re: config table returns latin1_swedish_ci
Yes, it is a real bug, but only if your default charset in MySQL is something else than UTF8.
I've already fixed this for K1.5.2, but my workaround should work as well.
Here's the real fix:
components/com_kunena/lib/kunena.config.class.php line 145 from:
to:
Here's the real fix:
components/com_kunena/lib/kunena.config.class.php line 145 from:
Code:
$database->setQuery("CREATE TABLE ".$this->GetConfigTableName()." (" . implode(', ', $fields) . " )");
to:
Code:
$this->_db->setQuery("CREATE TABLE ".$this->GetConfigTableName()." (" . implode(', ', $fields) . " ) DEFAULT CHARSET=utf8");
Please Log in or Create an account to join the conversation.
16 years 10 months ago - 16 years 10 months ago #19111
by guerilla
Replied by guerilla on topic Re: config table returns latin1_swedish_ci
you are such a late man 
i made it a little different way. i changed this:
$fields[] = "`$name` TEXT NULL";
to this:
$fields[] = "`$name` TEXT CHARACTER SET UTF8 COLLATE utf8_unicode_ci NULL";
changing only table charset doesnt work on me. so i handle with this way.
by the way, why kunena drops config table and creates again at save process, i really cant understand. is only writing datas to database not enough?
and another question (outside this issue) why all fields text or integer? for example even yesno areas are integer. doesnt this largen the database size? or mysql automatically set sizes of this fileds? i mean thousands of posts, or users etc...
thanks for help and answers.
i made it a little different way. i changed this:
$fields[] = "`$name` TEXT NULL";
to this:
$fields[] = "`$name` TEXT CHARACTER SET UTF8 COLLATE utf8_unicode_ci NULL";
changing only table charset doesnt work on me. so i handle with this way.
by the way, why kunena drops config table and creates again at save process, i really cant understand. is only writing datas to database not enough?
and another question (outside this issue) why all fields text or integer? for example even yesno areas are integer. doesnt this largen the database size? or mysql automatically set sizes of this fileds? i mean thousands of posts, or users etc...
thanks for help and answers.
Last edit: 16 years 10 months ago by guerilla.
Please Log in or Create an account to join the conversation.
Time to create page: 0.228 seconds