PDA

View Full Version : Mysql encoding


texerasmo
20-02-2007, 08:41
Ho un pb di encoding come posso cambiare il tipo di encoding all'intero database?

da linea di comando

texerasmo
20-02-2007, 08:44
ops ho dimenticato di incollarvi questo


mysql> alter database charset iso-8859-1;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'iso-8859-1' at line 1

texerasmo
20-02-2007, 08:58
Sono un pirla....


mysql> alter database giralatina charset utf8;
Query OK, 1 row affected (0.00 sec)

mysql> alter database giralatina COLLATE utf8_unicode_ci;
Query OK, 1 row affected (0.00 sec)


cmq non ho risolto il mio pb vedo i caratteri accentati male eppure quando usavo un altro db si vedevano bene vi incollo un pezzo del dump



CREATE TABLE `ezapprove_items` (
`collaboration_id` int(11) NOT NULL default '0',
`id` int(11) NOT NULL auto_increment,
`workflow_process_id` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=224 ;


qui potete verificare l'errore

http://www.giralatina.it/index.php?/website/sogni_e_relax/alberghi/hotel_grotta_di_tiberio__1