Joomla! Discussion Forums



It is currently Tue Nov 24, 2009 12:46 pm (All times are UTC )

 





Post new topic Reply to topic  [ 10 posts ] 
Author Message
Posted: Fri Jun 20, 2008 11:59 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Sep 20, 2006 7:48 pm
Posts: 313
Location: Tehran,Iran
Hello
in joomla 1.0.X series,database was latin1
and saved data same : U…?آ±Uئ’?آ² Uâ€،Uâ€

but in joomla 1.5 have change,and saved good data
for example U…?آ±Uئ’?آ² Uâ€،U†==> ُسلام.تست

how may i convert mysql to utf8?and solved charsets? and chars?

com_migrator,done this work
but is just for content,users and ...
but is not for fully database

Thanks

_________________
Joomfa Team(Joomla farsi) ==> http://joomfa.org


Top
  E-mail  
 
Posted: Sat Jun 21, 2008 7:28 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11674
Location: **Translation Matters**
Hello Mostafa,

Just make a dump of the database choosing utf8 as encoding.
Then, to be sure, open the dump in an utf8 editor and check all is OK.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Sat Jun 21, 2008 10:50 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Sep 20, 2006 7:48 pm
Posts: 313
Location: Tehran,Iran
Hello jeans
thanks

i going to phpmyadmin,export joomla 1.0.x series database.
then i open this file into notepad++

and id not good

Thanks jean

_________________
Joomfa Team(Joomla farsi) ==> http://joomfa.org


Top
  E-mail  
 
Posted: Mon Jul 14, 2008 6:23 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Mar 31, 2006 5:46 pm
Posts: 12
Same problem here, how can I export as UTF-8?


Top
  E-mail  
 
Posted: Wed Apr 01, 2009 8:31 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jun 09, 2006 7:44 pm
Posts: 33
Location: Belgium (Charleroi)
Hello,

Simply ... export the tables with phpmyadmin in SQL format. Edit the .sql file with Wordpad (or other editor), replace "latin1" with "utf8" and save the file. Then, import the file with phpmyadmin...

_________________
Cordialement,

Yamadix


Top
  E-mail  
 
Posted: Tue May 12, 2009 10:40 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue May 12, 2009 10:37 pm
Posts: 5
@yamadix

thanx for the reply friend ... but there's a little problem ... my exported .sql backup from phpmyadmin doesn't show character sets for tables creation .. am i missing an option or so in phpmyadmin ??


Top
  E-mail  
 
Posted: Wed May 13, 2009 7:22 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Jun 09, 2006 7:44 pm
Posts: 33
Location: Belgium (Charleroi)
Hello,

In the SQL-Export, for each table, you must find this line :
Quote:
ENGINE=MyISAM DEFAULT CHARSET=latin1;


If no, I am sorry ... I don't have an other response !

_________________
Cordialement,

Yamadix


Top
  E-mail  
 
Posted: Thu May 14, 2009 6:06 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue May 12, 2009 10:37 pm
Posts: 5
all that i got is Type=MyISAM ... only. Anyway i'll give it a try with ENGINE=MyISAM DEFAULT CHARSET=latin1; instead of the Type may be it'll work


Top
  E-mail  
 
Posted: Sat Sep 26, 2009 8:53 pm 
User avatar
Joomla! Intern
Joomla! Intern
Offline

Joined: Mon May 21, 2007 8:54 am
Posts: 94
Location: Russian Federation
xenome, take in mind next SQL queries:
DB charset replacement: ALTER DATABASE `db_name` COLLATE utf8_general_ci
Table charset replacement: ALTER TABLE `table_name` COLLATE utf8_general_ci

Where db_name and table_name - you have to use the right data.

_________________
http://round-interactive.com - eCommerce, turn-key websites
http://joomlatune.com - extensions for Joomla!


Top
   
 
Posted: Sun Sep 27, 2009 8:40 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11674
Location: **Translation Matters**
xenome wrote:
all that i got is Type=MyISAM ... only. Anyway i'll give it a try with ENGINE=MyISAM DEFAULT CHARSET=latin1; instead of the Type may be it'll work

This WILL NOT work in Joomla 1.5.
1.5 is fully utf8.
The default charset does not need to be set in the dump if the database is correctly collated.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group