|
|
||||||||
utf-8 and Collation on phpmyadminThis is a discussion on utf-8 and Collation on phpmyadmin within the Moving to Mambo forums for Mambo. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Mambo Supporter
Join Date: Aug 2007
Posts: 125
|
utf-8 and Collation on phpmyadmin
I've installed Mambo 4.6.3 and inserted content from Joomla! (just 4 tables), and although the install said utf-8 when I browse phpmyadmin I see that ALL the 38 tables have Collation set as "latin1_swedish_ci". The site is written in a non-english language.
So... is it bad? Do I need to change all the tables to utf-8 (utf8_general_ci)? How do I do it? Thanks, Last edited by Matador; 08-01-2008 at 08:47 PM. |
|
|
|
|
|
#2 |
|
Mambo Supporter
Moderators
Join Date: Jun 2007
Location: /home/radek
Posts: 289
|
Re: utf-8 and Collation on phpmyadmin
Hi Matador,
Code:
ALTER TABLE table CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; ![]() Regards, Neo
__________________
Sigsiu.NET - SOBI Development Team Radek Suski Internet: www.Sigsiu.NET / Online Shop: https://Shop.Sigsiu.NET / Support Center: http://Helpdesk.Sigsiu.NET |
|
|
|
|
|
#3 |
|
Mambo Supporter
Join Date: Aug 2007
Posts: 125
|
Re: utf-8 and Collation on phpmyadmin
Thanks.
What if the old content wasn't utf-8? Does it care? |
|
|
|
|
|
#4 |
|
Mambo Supporter
Moderators
Join Date: Jun 2007
Location: /home/radek
Posts: 289
|
Re: utf-8 and Collation on phpmyadmin
I never tried but is should be converted: http://dev.mysql.com/doc/refman/5.0/...t-convert.html
![]() Regards, Neo
__________________
Sigsiu.NET - SOBI Development Team Radek Suski Internet: www.Sigsiu.NET / Online Shop: https://Shop.Sigsiu.NET / Support Center: http://Helpdesk.Sigsiu.NET |
|
|
|
|
|
#5 |
|
Mambo Supporter
Join Date: Aug 2007
Posts: 125
|
Re: utf-8 and Collation on phpmyadmin
Ouch! I get this error:
|
|
|
|
|
|
#6 |
|
Mambo Supporter
Moderators
Join Date: Jun 2007
Location: /home/radek
Posts: 289
|
Re: utf-8 and Collation on phpmyadmin
This
ALTER TABLE table CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci; was of course just a placeholder for the real table name like: mos_bannerfinish, mos_categories, mos_comment, etc
__________________
Sigsiu.NET - SOBI Development Team Radek Suski Internet: www.Sigsiu.NET / Online Shop: https://Shop.Sigsiu.NET / Support Center: http://Helpdesk.Sigsiu.NET |
|
|
|
|
|
#7 |
|
Mambo Supporter
Join Date: Aug 2007
Posts: 125
|
Re: utf-8 and Collation on phpmyadmin
Sorry. I'm a moron. I didn't change the word "TABLE".
|
|
|
|
|
|
#8 |
|
Mambo Supporter
Join Date: Aug 2007
Posts: 125
|
Re: utf-8 and Collation on phpmyadmin
Originally Posted by neo_fox
Do I convert/cast before the table change? or after?
|
|
|
|
|
|
#9 |
|
Mambo Supporter
Join Date: Aug 2007
Posts: 125
|
Re: utf-8 and Collation on phpmyadmin
I've changed the tables but the SUM at the bottom keeps saying "latin1_swedish_ci", like the Database Collation.
|
|
|
|
|
|
#10 |
|
Mambo Guru
MSC
Programming Forum Admin Super Moderators Join Date: Oct 2006
Location: Colombia
Posts: 4,012
|
Re: utf-8 and Collation on phpmyadmin
Just a clue on this one, the charset used for the mysql connection is determined by charset of your language package, but additionally Mambo is able to use the mysql convertion so you can have your language package in a charset (utf-8 by default) and your database in another charset, doesn't work your mambo in that way?
__________________
Andrés Felipe Vargas http://www.mambo-es.net, únete a la comunidad en español de Mambo http://tinyurl.com/mambo-webchat Mambo Web Chat |
|
|
|
![]() |
| Bookmarks |
| Tags |
| quang |
| Thread Tools | |
|
|
| New To Site? | Need Help? |