문제

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