Frage

Below is the database structure and in cakephp database config, I put 'encoding' => 'utf8', but when I save special character like "Téseau" in the ff field, it only save "T", can you anyone please tell me what is wrong here?

CREATE TABLE IF NOT EXISTS `tt` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `ff` varchar(150) NOT NULL,,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
War es hilfreich?

Lösung

The editor I use was notepad and the encoding was ansi and when I change it to utf8, it starts working.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top