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 ;
有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top